logicapps icon indicating copy to clipboard operation
logicapps copied to clipboard

Use "azure/CLI@v1" to Swap parameter files Not "azure/powershell@v1"

Open LJaganathan opened this issue 3 years ago • 0 comments

In Swap parameter files,

1.) In logicApp_deploy.yml, using the PowerShell version to execute the CLI az commands won't work.

  • name: Swap parameter files id: params uses: azure/powershell@v1 with: inlineScript: | az functionapp deploy --resource-group ${{ secrets.RG_LA }} --name ${{ env.LA_NAME }} --src-path logic/azure.parameters.json --type static --target-path parameters.json azPSVersion: latest

2.) Required changes: Remove "uses: azure/powershell@v1" and use CLI version "uses: azure/CLI@v1" and remove the "azPSVersion", we need CLI latest version not PowerShell latest version.

  • name: Swap parameter files
    id: params uses: azure/CLI@v1 with: inlineScript: | az functionapp deploy --resource-group ${{ secrets.RG_LA }} --name ${{ env.LA_NAME }} --src-path logic/azure.parameters.json --type static --target-path parameters.json

LJaganathan avatar Oct 15 '22 07:10 LJaganathan