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

DevTest Labs does not set ARM template parameter _artifactsLocation correctly #833

Open
Yvand opened this issue Apr 14, 2022 · 0 comments
Open

Comments

@Yvand
Copy link
Contributor

Yvand commented Apr 14, 2022

When DevTest Labs deploys an environment from an ARM template, it misses the trailing '/' on parameter _artifactsLocation.
So value currently looks like: https://xxx.blob.core.windows.net/artifacts/SharePoint-AllVersions.132932726444650209/SharePoint-AllV1335581893

This is bad: It should have the same behavior as ARM function deployment().properties.templateLink.uri, which includes a trailing '/' at the end.
So value should looke like: https://xxx.blob.core.windows.net/artifacts/SharePoint-AllVersions.132932726444650209/SharePoint-AllV1335581893/

Impact on the ARM templates for DevTest Labs:

  • They have to manually add the trailing '/' to the value passed in _artifactsLocation by DevTest Labs.
  • Their default value of parameter _artifactsLocation cannot / should not be deployment().properties.templateLink.uri, because it would not reflect the actual format of the value at deployment time.
  • Since the templates cannot use deployment().properties.templateLink.uri as default value, this causes a validation error when using ARM TTK to validate the templates syntax.
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

1 participant