Answer – B
Azure PowerShell works with PowerShell 5.1 on Windows. On other platforms like Linux, Azure PowerShell 6.2.4 and later versions are compatible. Microsoft recommends PowerShell 7.x and higher on all platforms.
<h1>Azure PowerShell documentation</h1>
Azure PowerShell is a set of cmdlets for managing Azure resources directly from the PowerShell command line. Azure PowerShell is designed to make it easy to learn and get started with but provides powerful automation features. In .NET Standard, Azure PowerShell works with PowerShell 5.1 on Windows by installing some additional modules PowerShellGet & .Net framework.
PowerShell 6.2.4 and later is compatible on all OS platforms. However, Microsoft recommends PowerShell 7.x.
https://docs.microsoft.com/en-us/powershell/azure/?view=azps-4.5.0
Answer – B
Azure PowerShell works with PowerShell 5.1 on Windows. On other platforms like Linux, Azure PowerShell 6.2.4 and later versions are compatible. Microsoft recommends PowerShell 7.x and higher on all platforms.
<h1>Azure PowerShell documentation</h1>
Azure PowerShell is a set of cmdlets for managing Azure resources directly from the PowerShell command line. Azure PowerShell is designed to make it easy to learn and get started with but provides powerful automation features. In .NET Standard, Azure PowerShell works with PowerShell 5.1 on Windows by installing some additional modules PowerShellGet & .Net framework.
PowerShell 6.2.4 and later is compatible on all OS platforms. However, Microsoft recommends PowerShell 7.x.
https://docs.microsoft.com/en-us/azure/virtual-machines/linux/run-command