-
Notifications
You must be signed in to change notification settings - Fork 85
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
Accessing blob container with "$" (dollar sign) in name (i.e., $web) #223
Comments
PS D:> Get-AzureStorageContainer -Context $ctx Blob End Point: https://ufifstatic01.blob.core.windows.net/
PS D:> Get-AzureStorageContainer -Context $ctx -Name '$web' |
According to the Azure documentation, blob containers can't have a $ character in their name. However, we're working on adding support for Static Websites. Stay tuned! @MRayermannMSFT, do you have any details on this? |
Yes I do! So we're waiting on the NodeJS Client library to ship a version which supports $web containers. If you look at this file in their library, you can see an example of the type of validation they do regarding $ containers. It looks like they've already checked in support and shipped a preview version though, so it hopefully won't be long until they go public, at which point we'll feel comfortable consuming the bits. In the meantime, if you'd like to do so, you can patch their JS to enable support now! Simply look for that file in the Storage Explorer install directory, and add $web to any of the regex's where $root also appears. Let me know if you need help with that. 😄 |
Thanks, I updated this file as suggested and all is working - I can see all containers and can upload to the $web container. C:\Program Files (x86)\Microsoft Azure Storage Explorer\resources\app\node_modules\azure-storage\lib\common\util\validate.js Thank you. |
Sweet, glad to know it worked! We'll update/close this issue once we update the library and ship it. |
FWIW 206c206
< if (!nameError || containerName.match(/^(\$root|\$logs)$/)) {
---
> if (!nameError || containerName.match(/^(\$root|\$logs|\$web)$/)) { |
FYI, this issue was created to track AzCopy support for |
Quick update. The NodeJS library has shipped a non-preview version that supports $web. We've integrated it and will be shipping it in our next update. Thank you everyone for your patience! |
Thanks for letting us know @MRayermannMSFT, sounds good! |
This also occurs for uploading via powershell:
|
Can I ask a question here, no disrespect intended but seeing as I'm not the only person to lose time on this... It seems like a missed opportunity MS teams across different parts of the org didn't catch this in advance and subsequently multiple customers were negatively impacted. Introducing some form of cross org integration testing seems like a good idea here. No offense intended just one guy's opinion |
Thank you for the feedback. We are aware of the timing issue. Definitely will learn from this experiences in the future. The choices for Storage Explorer was to release a GA product (Storage Explorer) with a preview back-end library at the same time the static website services became available or to release a GA product with a GA back-end library few days later for quality purpose. We decided to go with the GA library. We are aiming to release a version of Storage Explorer with the static website support this week. Thanks for being patient with us. If you are blocked with uploading/downloading, please consider using the Storage extension for VS Code (preview) as a workaround. Thanks again for the feedback. |
@jinglouMSFT we are waiting :). Thank you for fix. Regards. |
Now that 1.3.0 has shipped, I'm going to close this issue. |
@noelstieglitz did you open an issue for the Azure RM powershell cmdlet issue by any chance? I am running into that issue now. |
@praneetloke - no, I did not. |
Have the same problem in DevOps pipeline with AzureBlobCopy command. ##[error]Upload to container: '$web' in storage account: 'blob' with blob prefix: '' failed with error: 'Azure Storage container names can only contain lowercase alpha-numeric characters or hyphens |
@veereshrev, this is not a general solution but a specifically-coded work-around for static websites that worked for me was to escape it in the PS script (as part of a custom task). There's context missing here (I can't paste all of the task), but the gist of it is that you do a hard-coded replacement in your destination by escaping it.
|
You can also just put |
This is still an issue when running scripts in deployment pipelines however when running locally I dont get the error and the scripts work fine. I'm just running Set-AzureStorageBlobContent in an Azure Powershell container in a deployment pipeline and wacko it complains about the $web. Does anyone have a fix for this? |
@interthingy No fix so far, I'm also running into this. |
Reopening due to user reports. @v-xuanzh, can you folks verify this in your testing? |
Closing due to the recent comments being about products other than Storage Explorer. If you're having issues with the Azure CLI you can find their repo here: https://github.com/Azure/azure-cli Unfortunatley I'm not sure the right place to send y'all for giving feedback on Azure DevOps. |
I don't think this is solved. I cannot do this:
Error is:
|
@johnjbateman Looks like you're using Azure PowerShell. This page is for Storage Explorer errors, and we don't use PowerShell in any way. |
where should this issue be opened? I am running into the same problem. I am trying to delete the contents of the $web container from DevOps release pipe upon releasing a new version of an application
|
I would appreciate the help too. This article had pretty early replies from @joegasper regarding Azure Powershell. |
@johnjbateman I think you want https://github.com/Azure/azure-powershell. |
@dannomayer I created issue 9897 on the Azure Powershell GitHub. |
typical Microsoft though here.. Oh, this is specifically for storage explorer.. Never mind the transparency. I am seeing the issue trying to load a static web page in ADO tasks.. And this has been around for how long and not corrected? This is ridiculous.. Every day I hate Microsoft more and more with their unreliable garbage. |
@christcottrell This repo is for Storage Explorer. The folks on the Azure Powershell or Azure CLI teams don't monitor this repo. If you have issues on those products, I'd recommend you report issues in their repo's to get a quick reply. We've listed the link to the Azure Powershell repo above. |
Storage Explorer Version: 1.1.0
Platform: Windows
Architecture: ia32
Build Number: 20180507.1
Commit: bcc8990d
Regression From: N/A
Steps to Reproduce:
(https://myblobstore.blob.core.windows.net/$web/)
"An Azure Storage container has been created to host your static website.
$web"
Expected Experience:
I should see a list of containers.
Actual Experience:
Blob Containers just shows "Loading..."
I'm not able to see the $web container or any other containers.
I tried using Azcopy 7.1.0, also, and it fails with "Invalid location" for the destination.
I can upload a file via the Azure Portal's Storage Explorer.
So, hello world https://ufifstatic01.z4.web.core.windows.net/
Thanks.
The text was updated successfully, but these errors were encountered: