Trying to run our terraform script in a azure devops pipeline. It invokes a powershell script that uses azure cli to create a resource that is not natively available in terraform. However, we run into error that Az and AzureRm modules cannot both be installed.
2019-06-07T15:45:48.1553235Z same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can
2019-06-07T15:45:48.1554405Z use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. If you are running in Azure
2019-06-07T15:45:48.1555064Z Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found
2019-06-07T15:45:48.1555474Z here: https://aka.ms/azps-migration-guide
Tried running Uninstall-AzureRm but the command is not found.
How do you remove azurerm from VS 2017 Hosted agent instance?