Powershell script to update AAP Settings through Custom ADF Activity

ROHITH JOGIPARTHI 1 Reputation point
2021-10-28T10:15:45.433+00:00

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
Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.