Skip to content
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

Blob Storage: Be able to set api version to use like in the Python package #31606

Open
ThomasShih opened this issue Nov 1, 2024 · 1 comment
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)

Comments

@ThomasShih
Copy link

ThomasShih commented Nov 1, 2024

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I can't figure out how to set the outbound api version to use for BlobServiceClient in '@azure/storage-blob'. I would assume there might be two locations where we can set it but I don't see any options in the interfaces/types.

Best pratices in the API docs state that we should set the version, https://learn.microsoft.com/en-us/rest/api/storageservices/versioning-best-practices. While we don't have a use case to set the version on our prod/dev environments, this is breaking our testing.

Describe the solution you'd like

  • Instantiate the BlobServiceClient with an option to set API version, like how its done in https://learn.microsoft.com/en-us/python/api/azure-storage-blob/azure.storage.blob.blobserviceclient?view=azure-python#keyword-only-parameters

OR

  • Ability to set the API version in each outbound call site, such as createContainer

USE CASE
We are currently using test containers to spin up azurite instances. Since test containers use docker, we typically retrieve the latest image in our local cache. This means that if the node package updates and has a newer api version that a historical 'latest' image might not support, our testing environment breaks. We get the error of The API version 2024-11-04 is not supported by Azurite.

@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files) labels Nov 1, 2024
Copy link

github-actions bot commented Nov 1, 2024

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

No branches or pull requests

2 participants