Shell script won't upload to storage blob?

AndrewW 0 Reputation points
2024-01-10T09:41:10.0033333+00:00

So, for use with an image customisation process I'm doing, I thought I'd upload a sample bash script to a storage account, so I can reference it during the image build process.

But, unhelpfully, all I was getting was:

Failed to upload blob(s)

Failed to upload 1 out of 1 blob(s): script.sh: error

Similarly vague errors in Storage Explorer about my SAS key. The script was just a simple placeholder to test it was being called:

#!/bin/bash

echo bashy-bash > /tmp/bashaw.txt

However, it just won't upload. I discovered if I remove that first line, it uploads fine. If I remove just the "!" character, it works fine.

OK, so it's some sort of prohibited-content then (thanks for the help error message, MS), but I can't find any explanation as to why it's not allowed anywhere.

Anyone got any suggestions please?

Thanks

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,436 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.