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

Uploading blob to existing SAS URI for Microsoft Store submission #211

Open
triplef opened this issue Jan 24, 2022 · 0 comments
Open

Uploading blob to existing SAS URI for Microsoft Store submission #211

triplef opened this issue Jan 24, 2022 · 0 comments

Comments

@triplef
Copy link

triplef commented Jan 24, 2022

I’m trying to upload a file to a pre-defined SAS URI to submit a package to the Microsoft Store:

If you are adding new packages for the submission, upload the ZIP archive to Azure Blob Storage using the SAS URI that was provided in the response body of the POST method you called earlier.

The documentation contains the following example to upload using the Azure Storage Client Library for .NET:

string sasUrl = "https://productingestionbin1.blob.core.windows.net/ingestion/26920f66-b592-4439-9a9d-fb0f014902ec?sv=2014-02-14&sr=b&sig=usAN0kNFNnYE2tGQBI%2BARQWejX1Guiz7hdFtRhyK%2Bog%3D&se=2016-06-17T20:45:51Z&sp=rwl";
Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob blockBob =
    new Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob(new System.Uri(sasUrl));
await blockBob.UploadFromStreamAsync(stream);

How can I do the same using the Ruby library? It seems that it always requires an account name/key and doesn’t allow providing an existing URI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant