-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ConnectionString parsing #16782
Comments
Thanks for the feedback. Are you suggesting moving the connection_string parsing into azure.core? One concern here is different services may have different schemas for the connection string. e.g. app config service connection string is different from the one for iot. hence _validate_keys may not work correctly for app config. Could you help give more data points which services can share the parser? That can help us prioritize the work. Thank you. |
@xiangyan99 i'd mostly need connection string parser for storage and event hubs. that's it :) you can add more services later. typical use case would be getting azure event hub connection string and configuring pyspark consumer with it. or accessing adls gen1/gen2/blob through python sdk directly. the point is that connection strings are usually the outputs from Terraform & they land in secret stores and stored over there as secret string as a whole. it would be nicer not to write same (even small) amount of code again and again. you can introduce a |
@nfx Thank you for the information. It is very helpful. |
Looking forward to see it and use it :) make sure it propagates to azureeventhubs and storage docs |
Hi @nfx, The feature has been added and will be available in the next release. We did consider your proposed option of some sort of If you are looking for a Thank you for your feedback! |
@swathipil i'd like to see the same consistent |
@nfx Could you give us more details what's the difference between the ConnectionString class and dict? Thank you. |
@xiangyan99 normal classes give some sort of autocompletion and better documentation, than simple dicts. here's the example https://github.com/Azure/azure-sdk-for-java/blob/026664ea871586e681ab674e0332b6cc2352c655/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ConnectionString.java |
Hi @nfx, in the core In the Java example, it looks like there are four instance variables/properties on a Thanks! |
In plenty of cases we receive connection strings for azure resources. We should port
ConnectionString
parser from iot sdk, so that it's easier and more consistent to work with APIs https://github.com/Azure/azure-iot-sdk-python/blob/master/azure-iot-device/azure/iot/device/common/auth/connection_string.pyThe text was updated successfully, but these errors were encountered: