Save-AzureRmProfile issues
I created a VM in Azure and selected Windows Server 2012 R2.
I installed Windows PowerShell using the Web Platform Installer. When I try to run the following command:
Save-AzureRmProfile -Path C:\MyPath\myfile.json
It throws an error:
The term "Save-AzureRmProfile" is not recognized as the name of a cmdlet, function, script file, or operating program. Check the spelling of the name or the inclusion of the path, make sure the path is correct and try again.
I tried to follow this link here , adding environment variables, but didn't help. Has anyone solved this problem?
source to share
The cmdlet name was changed in 4.0, you can see all changes in 4.0 here: https://github.com/Azure/azure-powershell/blob/preview/documentation/release-notes/migration-guide.4.0.0.md
Unfortunately the name of the cmdlet was changed without an alias for backward compatibility in version 3.8, for this issue :. This is actually a bug we are pushing from version 3.9, which is identical to 3.8, except that two profile cmdlets (Save-AzureRmProfile, Select-AzureRmProfile) remove this change violation
source to share