Closed erdembayar closed 1 month ago
@christothes @JonathanCrd
Thank you for your feedback. Tagging and routing to the team member best able to assist.
Hi @erdembayar. Thanks for reaching out and we regret that you're experiencing difficulties. The Azure SDK clients do not define connection string formats; they support the form exposed by the Azure service. The Azure SDK packages intentionally do not extend or alter connection strings defined by the service. It is intended that connection strings are used for "getting started" scenarios and are copy/pasted directly from the Azure portal. We do not recommend formatting connection strings by hand nor using them for production scenarios.
In this case, the naming and format are controlled by the Azure Storage service. To ensure that the right team has visibility and can help, your best path forward for would be to open an Azure support request or make your suggestion on the Azure Feedback site.
Hi @erdembayar. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.
Hi @erdembayar - Another issue to point out - the Uri you are constructing is not valid.
string accountName = "foo";
string tableEndpoint = string.Format("TableEndPoint=https://{0}.table.core.windows.net/", accountName);
new Uri(tableEndpoint); // throws UriFormatException: Invalid URI: The URI scheme is not valid.
The Uri parameter to TableClient should be a valid Uri like:
string.Format("https://{0}.table.core.windows.net/", accountName);
Hi @erdembayar - Another issue to point out - the Uri you are constructing is not valid.
string accountName = "foo"; string tableEndpoint = string.Format("TableEndPoint=https://{0}.table.core.windows.net/", accountName); new Uri(tableEndpoint); // throws UriFormatException: Invalid URI: The URI scheme is not valid.
The Uri parameter to TableClient should be a valid Uri like:
string.Format("https://{0}.table.core.windows.net/", accountName);
That is the whole point of this issue. The Azure SDK connection is not consistent between blob and table connections. In blob storage, it asks for BlobEndpoint= but not for table connection.
Hi @erdembayar, since you haven’t asked that we /unresolve
the issue, we’ll close this out. If you believe further discussion is needed, please add a comment /unresolve
to reopen the issue.
/unresolve
Library name and version
Azure.Data.Tables 12.8.3
Describe the bug
Connection string for Blob storage and Table storage is not consistent, making it hard to notice that we're working with table storage. I wish Azure SDK could use a more explicit connection string to prevent errors. For example:
BlobEndpoint=
prefix. "BlobConnectionString": "BlobEndpoint=https://myvalid.blob.core.windows.net", 2. However, for table storage, if I useTableEndPoint=
it throws an exception. "TableConnectionString": "https://myvalid.table.core.windows.net", You can see this usage example from https://stackoverflow.com/a/69796751 too.Expected behavior
Below code don't throw exception
Actual behavior
If I use
"TableConnectionString": " TableEndPoint=https://myvalid.table.core.windows.net"
instead of"TableConnectionString": "https://myvalid.table.core.windows.net"
then it throws an exception.Reproduction Steps
Environment
Azure C# No response