How to install a PowerShell module on an Azure web app without administrator permissions? How to install a PowerShell module on an Azure web app without administrator permissions? powershell powershell

How to install a PowerShell module on an Azure web app without administrator permissions?


If the version on the environment is not compatible with your requirements try to uninstall it first.

How to uninstall the AzureRM module to re-install a different version - https://docs.microsoft.com/en-us/powershell/azure/uninstall-azurerm-ps?view=azurermps-6.13.0

Install Azure RM Module with Power Shell - https://docs.microsoft.com/en-us/powershell/azure/install-azurerm-ps?view=azurermps-6.13.0


You can try to install the module version you need to the current user environment (use Az module instead of AzureRM):

Install-Module -Name Az.Websites  -Scope CurrentUser

Tale a note that AzureRM is not recommended anymore:

Because Az PowerShell modules now have all the capabilities of AzureRMPowerShell modules and more, we'll retire AzureRM PowerShell moduleson 29 February 2024.We do not support having both the AzureRM and Az modules installed forPowerShell 5.1 on Windows at the same time.