Skip to content

Commit ec782d0

Browse files
committed
add rest to update fileshare
1 parent cc56b9d commit ec782d0

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed
235 KB
Loading
84.6 KB
Loading

articles/machine-learning/prompt-flow/troubleshoot-guidance.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,21 @@ If you encounter an error like "Access denied to list workspace secret", check w
271271

272272
### How do I use credential-less data store in prompt flow?
273273

274+
#### Change auth type of data store to None
275+
274276
You can follow [Identity-based data authentication](../how-to-administrate-data-authentication.md#identity-based-data-authentication) this part to make your data store credential-less.
275277

276-
To use credential-less data store in prompt flow, you need to grand enough permissions to user identity or managed identity to access the data store.
278+
You need change auth type of data store to None which stands for meid_token based auth. For blob/adls gen1/adls gen2 based data, you can make change from data store detail page, or CLI/SDK: https://github.com/Azure/azureml-examples/tree/main/cli/resources/datastore
279+
280+
:::image type="content" source="./media/faq/datastore_auth_type.png" alt-text="Screenshot of auth type for datastore. " lightbox = "./media/faq/datastore_auth_type.png":::
281+
282+
For fileshare based data store, you can only change auth type for rest api: [datastores-create-or-update](https://learn.microsoft.com/en-us/rest/api/azureml/datastores/create-or-update?view=rest-azureml-2023-10-01&tabs=HTTP#code-try-0). You can first use [datastores-get](https://learn.microsoft.com/en-us/rest/api/azureml/datastores/get?view=rest-azureml-2023-10-01&tabs=HTTP#code-try-0) to get the body properties of datastore, then change `"credentialsType": "None"`
283+
284+
:::image type="content" source="./media/faq/datastore-update-rest.png" alt-text="Screenshot of rest for datastore update. " lightbox = "./media/faq/datastore-update-rest.png":::
285+
286+
#### Grant permission to user identity or managed identity
287+
288+
To use credential-less data store in prompt flow, you need to grant enough permissions to user identity or managed identity to access the data store.
277289
- If you're using user identity this default option in prompt flow, you need to make sure the user identity has following role on the storage account:
278290
- `Storage Blob Data Contributor` on the storage account, at least need read/write (better have delete) permission.
279291
- `Storage File Data Privileged Contributor` on the storage account, at least need read/write (better have delete) permission

0 commit comments

Comments
 (0)