Please include support for "$web" blob container
See original GitHub issueRecently at Build, support for static website hosting is announced. Static website contents go into a special blob container called “$web”. However this name is not supported by the SDK (only “$root” and “$logs” names are supported). Can we please change the SDK to support “$web” blob container?
I believe we need to change containerNameIsValid
method in validate.js
file. The modified code should be something like this:
/**
* Validates a container name.
*
* @param {string} containerName The container name.
*/
exports.containerNameIsValid = function (containerName, callback) {
var fail;
initCallback(callback, function (f, cb) {
fail = f;
callback = cb;
});
var nameError = getNameError(containerName, 'Container');
if (!nameError || containerName.match(/^(\$root|\$logs|\$web)$/)) {
callback();
return true;
} else {
return fail(nameError);
}
};
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Cannot access container in a Storage account - Microsoft Q&A
3 Answers · 1) Browse to Storage Account in the Azure Portal · 2) Access Control (IAM) · 3) Grant Access to this...
Read more >How can I set CORS in Azure BLOB Storage in Portal?
Does anyone know why it still says "Cross-Origin Resource Sharing (CORS) support for Azure Storage is not supported with static website." here: learn.microsoft....
Read more >Can connect to Storage but cannot view blob containers, file ...
I have installed the latest version of Storage Explorer. ... Please include the details below to help us diagnose your issue.
Read more >How to use Azure Blob Storage with ASP.NET Core Web API
The first thing we have to do is to create a Storage Account in our Azure Portal. This is used to provide the...
Read more >Azure.Storage.Blobs 12.14.1 - NuGet
dotnet add package Azure.Storage.Blobs --version 12.14.1 ... library makes it easy to add Azure Active Directory support for authenticating Azure SDK ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
$web support is released in 2.9.0-preview.
I just tried it and it works perfectly fine. Thank you team for quick turnaround on this issue.