I need to find the installed Azure PowerShell version through cmdlets code. How do I find the Azure PowerShell version?
Note: Other than cmdlets code is also welcome.
I need to find the installed Azure PowerShell version through cmdlets code. How do I find the Azure PowerShell version?
Note: Other than cmdlets code is also welcome.
It runs in AzureServiceManagementMode and not in ARM mode in version 0.8 and 0.9. It works smooth with the version 1.0 and above.
Cheers!!
You can use the following cmdlet to get the Azure PowerShell version as well!
Copy and paste the following, and run it!
Use:
This will return version of installed Azure PowerShell.
This is great to run if you have multiple versions running.
This PowerShell cmdlet will get the Azure PowerShell version.
It has a major advantage in which it will be able to return the expected outcome even if the Azure module has not been loaded into the current PowerShell session.
On the contrary,
(Get-Module Azure).Version
will only work if the Azure module has been loaded into the current PowerShell session before, i.e. by calling any cmdlet from the Azure module in the current PowerShell session, e.g.Get-AzureStorageAccount