Skip to content
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

Minus in GitHub repository name breaks the deployment wizard #70

Open
artem-dudarev opened this issue Jun 4, 2016 · 3 comments
Open

Comments

@artem-dudarev
Copy link

artem-dudarev commented Jun 4, 2016

How to reproduce:

  1. Open GitHub repository with a minus in the name: https://github.com/artem-dudarev/test-deploy
  2. Click the Deploy to Azure button
  3. Click Next button on the SETUP step of the wizard
  4. The PREVIEW step shows the following error:

The template deployment 'a74fc7da-76f0-4697-93d1-909913e14327' is not valid according to the validation procedure. The tracking id is '5ba790bf-25de-4b35-b9b9-07bf7f787018'. See inner errors for details. Please see http://aka.ms/arm-deploy for usage details.

If you repeat the same steps with different repository which has identical content but different name then PREVIEW step works fine:
https://github.com/artem-dudarev/testdeploy

The only difference between these repositories is the minus in the name: test-deploy vs testdeploy.

@artem-dudarev artem-dudarev changed the title Dash in GitHub repository name breaks the deployment wizard Minus in GitHub repository name breaks the deployment wizard Jun 4, 2016
@artem-dudarev
Copy link
Author

I've found the reason - storage account name can contain only letters and numbers. No dashes.
Considering this I'd like to change the default value for the siteName parameter so it would contain only letters and numbers. Is it possible?

@snobu
Copy link
Contributor

snobu commented Jun 6, 2016

That's correct, letters and numbers only.
https://github.com/Azure/azure-content/blob/master/articles/storage/storage-create-storage-account.md#create-a-storage-account

We would happily accept a PR.

Maybe the siteName parameter could stay untouched and only trim dashes for storage account names?

@hxlnt
Copy link

hxlnt commented Mar 27, 2018

I ran into this issue recently, and even if hyphens are scrubbed with the replace function, the default deployment will give a "deployment failed" message when deploying into a new resource group. (The deployment actually doesn't fail; but users will get an error message stating that it does.) This is because deploying to a new resource group will default to the repo name with hyphens, and as far as I can tell, there is no way to replace the default name on a newly-created resource group from the azuredeploy.json config.

It would be great to be able to change the default name and location of a newly-created RG to mitigate this issue, especially because users will not necessarily get feedback on why their deployment failed (or seemed to have failed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants