I have a pre-deployment script for an Azure deployment written with the Az module. I removed AzureRm and installed the Az module at the OS level, and have also set the OctopusUseBundledAzureModules project variable to False.
I’m now receiving the following error, which is likely due to AzureRM being called. I did see in reading the forum that the Disable-AzureRMContextAutosave call was added fairly recently to address another problem. Is there any way to disable that call, or call the Az version of it instead?
Disable-AzureRMContextAutosave : The term ‘Disable-AzureRMContextAutosave’ 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.