azure-search-openai-demo icon indicating copy to clipboard operation
azure-search-openai-demo copied to clipboard

Key for storage account using --storagekey

Open MiguelElGallo opened this issue 2 years ago • 0 comments

This issue is for a: (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Edit predocs.ps1 add an --storagekey but the function upload_blobs will fail with: "Unsopported key" It is mandatory to use that type of key, because the normal user needs 2FA. The standard code will not work. You need to add the --storagekey but it does not work.

I edited upload_blobs blob_service = BlobServiceClient(account_url=f"https://{args.storageaccount}.blob.core.windows.net", credential="mykey")

and it works. Can you try using --storagekey and see if it works? Cheers!

MiguelElGallo avatar Mar 11 '23 08:03 MiguelElGallo