whiteducksoftware / azure-arm-action

A GitHub Action for easy deployment of ARM templates. 🚀
https://github.com/marketplace/actions/azure-resource-manager-arm-template-deployment
MIT License
9 stars 5 forks source link

Passing multiple parameters to action #5

Closed aksh-h closed 3 years ago

aksh-h commented 3 years ago

Hi there,

I'm not finding a way to pass multiple parameters to GitHub action to deploy ARM template. I've some parameters to be picked up from template.parameters.json and other should be passed inline to the action.

I tried something like this, which didn't work.

- name: Deploy Azure Resource Manager (ARM) Template
        uses: Azure/arm-deploy@v1
        with:
          scope: resourcegroup
          resourceGroupName: YAML 
          region: Central India
          template: ./ARMTemplates/azuredeploy.json
          #parameters: ./ARMTemplates/azuredeploy.parameters.json
          parameters: ./ARMTemplates/azuredeploy.parameters.json,WebsiteName=abc893eyq,ServerName=server1s38,HostingPlanName=abce2e
nmeisenzahl commented 3 years ago

Hi @aksh-h,

please provide your parameter file as parameters and add further parameters to the overrideParameters section. Those need to be passed as space-delimited key-value pairs. More details are available here.

Greets Nico

aksh-h commented 3 years ago

Thanks, This worked!!