Powershell script to update AAP Settings through Custom ADF Activity
I am trying to update My Azure App Service Settings through PowerShell Script and execute the Powershell Script From ADF using a Custom Activity and Batch Account. And, When am triggering the script, the script is getting executed, but failing to execute the commands like "Get-AzWebApp", "Set-AzWebApp", etc..,. I did tried to Install Azure Packages from Powershellgallery.com in to the Applications and referred them in the Application Refrence and rebooted the nodes for packages to reflect. But, still recieving the below error:
Get-AzWebApp : The term 'Get-AzWebApp' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that
the path is correct and try again.
At D:\batch\tasks\workitems\adfv2-cloudcmspool_DataPipeline\job-1\9bce4553-8c0b-4982-8b1a-263770c42
699\wd\ps_script.ps1:8 char:1
- Get-AzWebApp -Name $AppName -ResourceGroupName $ResourceGroupName
- ~~~~~~~~~~~~
- CategoryInfo : ObjectNotFound: (Get-AzWebApp:String) [], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException