Shell script won't upload to storage blob?
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