AZURE ARM template deployment

30 Nov



When you are developing ARM templates in Visual studio and want to deploy you will get an error:

[ERROR] The running command stopped because the preference variable “ErrorActionPreference” or common parameter is set to Stop: Container name ‘dev_mka_extentiontest-stageartifacts’ is invalid. Valid names start and end with a lower case letter or a number and has in between a lower case letter, number or dash with no consecutive dashes and is 3 through 63 characters long.

[ERROR] + CategoryInfo : InvalidArgument: (:) [Set-AzureStorageBlobContent], ArgumentException

[ERROR] + FullyQualifiedErrorId : ArgumentException,Microsoft.WindowsAzure.Commands.Storage.Blob.SetAzureBlobContentCommand



Reading the error message it should be something with the name of the artifacts container the deployment script wants to create.

I use the deployment configured as below:

So I just took the Azure storage explorer and tried to create exactly the same container. And guess … same error.

So I changed the _ in the name to – and guess … it worked.


So be sure you don’t create a Resource group with_ in the name. Yes I know Azure will accept it but the deployment script used in Visual studio has an issue with this.



Happy Azurering

Michel kamp

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: