-
Notifications
You must be signed in to change notification settings - Fork 2.6k
AzureResourceManagerTemplateDeploymentV3 - Add .bicepparam support #19402
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
AzureResourceManagerTemplateDeploymentV3 - Add .bicepparam support #19402
Conversation
Couple of additional things i would like to note here:
|
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Hi @Cadacious , thanks for contributing on this task, I will check this PR and revert ASAP. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
…om/Cadacious/azure-pipelines-tasks into users/scady/add-bicepparam-support
I reviewed the pipeline failure and ran the BuildConfigGen tool as suggested. The exact command run was If possible, please document proper usage of this tool on the public side of this repository so other community contributors are aware of all newly added required steps for contributing to these pipeline tasks. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Tasks/AzureResourceManagerTemplateDeploymentV3/operations/Utils.ts
Outdated
Show resolved
Hide resolved
Tasks/AzureResourceManagerTemplateDeploymentV3/operations/Utils.ts
Outdated
Show resolved
Hide resolved
/azp run |
Commenter does not have sufficient privileges for PR 19402 in repo microsoft/azure-pipelines-tasks |
Azure Pipelines successfully started running 3 pipeline(s). |
I would love to see this finished! Thanks @Cadacious ! |
@PhilipsonJoseph please review again and let me know if there is anything else needed to merge this in time for the upcoming task release window. |
@Cadacious looks good to me i have approved your pull request |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Hi @Cadacious , thanks for this PR, I will procced to get it approved from relevant owners and will merge it soon. Local task test Step 1: run "npm i" Step 2: Build:
Step 3: Install tfx:
Step 4: Login:
Step 5: Upload:
New task version will be uploaded to your org, please test the changes by running the pipeline. Step 6: Delete: // optional and can be done after all the testing is completed.
|
This required a small change to the cleanup portion of the code to remove an extra @v-mohithgc please see the below pipeline runs using the latest code for this task. ARM template deployment task - validation with bicep param file ARM Template deployment task - deployment with bicep param file Also, I have never run across these instructions for testing changes to the in-box tasks like this in a pipeline run. These will prove invaluable to other community contributors to do final validations against their task contributions as was the case here. Please include these steps in the contribution readme for this repository. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Hi @Cadacious , |
Awesome work @Cadacious! Thank you. @v-mohithgc - do you know when this will be available in pipelines? |
version 235 should be shipped within the next 10-12 working days. |
Does the documentation have to be updated as well? It would be nice to have an example of how to use a |
This has been updated in MicrosoftDocs/azure-docs#120346 |
Great, thanks :) |
Task name: AzureResourceManagerTemplateDeploymentV3
Description: Updated task to support
.bicepparam
file as input forcsmParametersFile
. Used much of the same logic and functionality that was originally used to include.bicep
support with necessary changes.Instead of accepting the default behavior of
az bicep build-params --file filename.bicepparm
to produce afilename.json
file the--outfile
parameter was used to add the.parameters.json
extension.This prevents the primary bicep file from being overwritten in the case it shares the same name as the param file. For example,
az bicep build --file main.bicep
andaz bicep build-params --file main.bicepparam
both produce amain.json
file. Running both back to back in the same task will cause converted output of the.bicepparam
file to overwrite the.bicep
file converted output.The resulting
.parameters.json
file is deposited into and referenced from the same directory as the.bicepparm
file came from.Documentation changes required: Yes. I have changes for that ready in my forked copy of the azure-devops-yaml-schema repository.
Added unit tests: Yes, unit tests were added.
Attached related issue: #19064 #18521
Checklist: