postgresql - AzureStorageClient raises the error Unable to determine account name for shared key credential - Stack Overflow
- c - Solaris 10 make Error code 1 Fatal Error when trying to build python 2.7.16 - Stack Overflow 推荐度:
- javascript - How to dismiss a phonegap notification programmatically - Stack Overflow 推荐度:
- javascript - Get the JSON objects that are not present in another array - Stack Overflow 推荐度:
- javascript - VS 2015 Angular 2 import modules cannot be resolved - Stack Overflow 推荐度:
- javascript - Type 'undefined' is not assignable to type 'menuItemProps[]' - Stack Overflow 推荐度:
- 相关推荐
AzureStorageClient raises the error:
Unable to determine account name for shared key credential
This is the line of code that I am trying to use to connect to my azure account, I am trying to connect this with my Azure Storage Account
storage_client = AzureStorageClient(account_url=<blob_service_url>, container=<container_name>, credential=<connecion_string>)
I am trying to use Azure blob storage as my storage client to use with Azure Database for PostgreSQL using SQLAlchemyDataLayer as my data layer.
I know this could be caused by the use of bad key on my part, but I am using the same keys for other functions and they work fine.
I am frankly new using Azure, and chainlit, and I have tried all I can think about to solve this.
I would be thankful for any insight or guidance on this matter.
I expected it to work, and I try using different keys, and read the documentation and cannot find my mistake
AzureStorageClient raises the error:
Unable to determine account name for shared key credential
This is the line of code that I am trying to use to connect to my azure account, I am trying to connect this with my Azure Storage Account
storage_client = AzureStorageClient(account_url=<blob_service_url>, container=<container_name>, credential=<connecion_string>)
I am trying to use Azure blob storage as my storage client to use with Azure Database for PostgreSQL using SQLAlchemyDataLayer as my data layer.
I know this could be caused by the use of bad key on my part, but I am using the same keys for other functions and they work fine.
I am frankly new using Azure, and chainlit, and I have tried all I can think about to solve this.
I would be thankful for any insight or guidance on this matter.
I expected it to work, and I try using different keys, and read the documentation and cannot find my mistake
Share Improve this question asked yesterday Anna Bianca Marzetti BiggiAnna Bianca Marzetti Biggi 211 silver badge1 bronze badge New contributor Anna Bianca Marzetti Biggi is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.1 Answer
Reset to default 1AzureStorageClient Class requires Data Lake Storage endpoint, instead of Blob Service endpoint. The line of code you are using to connect to azure account is supposed to be:
storage_client = AzureStorageClient(account_url="https://{}.dfs.core.windows.net".format('<storage_account>'), container='<container>', credential='<key>')
You can find Data Lake Storage endpoint from Endpoints tab of Storage Account in Azure portal. See the screenshot:
Just FYI: In below screenshot from VS Code, if you pay attention to account_url sample parameter, you can see that the url with .dfs. is provided which is Data Lake Storage endpoint.
- 2020年或诞生超级计算机:相当5000万台笔记本
- 应用软件战场:安卓不敌苹果
- flutter - Alert + Data FCM message does not always trigger FirebaseMessaging.onMessage on iOS - Stack Overflow
- php - Laravel RouteServiceProvider missing in appProviders directory - Stack Overflow
- filename has 'netboxlabs-diode-netbox-plugin', but metadata has 'unknown' - Stack Overflow
- frontend - Rescript and Fetch with Post Request - Stack Overflow
- ios - CocoaPods could not find compatible versions for pod "FirebaseCore": - Stack Overflow
- c# - I have a time clock connected to my local network and I have a Windows server on localweb and I can't get the clock
- Trouble installing homebrew with ansible playbook, linux client and host nodes - Stack Overflow
- testing - Cypress does not load static fonts - Stack Overflow
- Angular post request body is null when received by Spring API - Stack Overflow
- Odoo: BOM Update Not Removing Deleted Items from RFQ in Purchase Orders - Stack Overflow
- Has Paho MQTT Client for Ionic on Android limitations regarding the number of client instances? - Stack Overflow
- c# - Trouble when setting up Serilog in ASP.NET Core Web API - Stack Overflow
- ios - Display videos in React Native does not work in production mode but in Simulator [expo-media-libraryexpo-av] - Stack Overf
- algorithmic trading - Why is my python script working sometimes but not others? There seems to be a delay for it to work - Stack
- r - subscript out of bounds error when indexing vector of equal size - Stack Overflow