I have one release pipeline where i am deploying latest/selected artifacts to one web app. I want to release the same artifacts to multiple web app in single release pipeline.
I have two option in my mind.
- Create a multiple task with each web app. (this is achievable but every time pipeline changes requires whenever there is new web app getting in picture)
- using Power shell but not sure why my command is not working here . getting error as The term 'Publish-AzWebApp' is not recognized as the name of a cmdlet, Though this command is working fine in local system but not in pipeline.
Publish-AzWebApp -ResourceGroupName gggroup -Name $app -ArchivePath $(System.DefaultWorkingDirectory)/**/*.zip
this command will run in loop.
Any suggestion!!!