-
Notifications
You must be signed in to change notification settings - Fork 190
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
Nested templates and Parameters Without Default Must Exist In CreateUIDefinition #681
Comments
@adrianmo , just want to offer that something does seem strange here. You should be able to do what you want and the marketplace should go and accept the ARM template that you showed. This is actually what you have to do for a location parameter, which I have gone and submitted successfully myself. Are you seeing this issue when you upload to the partner center, or just locally? it may be that the partner center does not check this rule. You can find the exact arm-ttk setup for ARM-TTK that the partner center uses here, https://aka.ms/arm-ttk-marketplace I have an example of an Azure DevOps pipeline where I run this version of ARM-TTK on my template before I submit to partner center, just in case that helps you too. https://github.com/microsoft/azure-gaming-devops/blob/main/marketplace/stage_arm_ttk.yml Also before making hundreds of changes anywhere, the Partner Center team may be able to give an exception for some of the failing rules. When making your submission for review, include in the notes that you except this ARM-TTK warning to fail, and explain why it is a false-positive. |
@bmoore-msft This looks related to #680, please assign it to me. |
Hello, we are in the process of certifying a managed application and we are getting the validation error in the issue title that is forcing us to add default values to all nested templates. Since they are nested templates, we understand that they are not directly connected to the CreateUIDefinition file and they should not be taken into account by that check.
I've built a minimal example to demonstrate the issue. I hope that can help better understand it, but happy to provide more details if needed.
createUiDefinition.json:
main.bicep:
module.bicep:
When built, the Bicep files produce the following ARM template:
The
Parameters-Without-Default-Must-Exist-In-CreateUIDefinition
check fails as follows.If we add a default value to the module parameter, the validation passes. However, that forces us to set default values for hundreds of parameters across multiple modules, which doesn't look right at all.
The text was updated successfully, but these errors were encountered: