An Azure service that is used to provision Windows and Linux virtual machines.
Hello @Lavanya Chintam Reddy,
Refer to - Migrating from Windows PowerShell 5.1 to PowerShell 7
It is important to note that PowerShell 5.1 cannot be uninstalled or removed from Windows 10/11 or Server operating systems. PowerShell 5.1 is an integral part of the Windows operating system and is installed by default.
Verify Installed Versions: $PSVersionTable
Install PowerShell 7 via Winget or MSI as a side-by-side installation. Do not remove Windows PowerShell 5.1 because it is an integral part of the Windows OS structure, and its removal will likely lead to system instability and script failures. Use PowerShell 7 for modern, cross-platform tasks while keeping PowerShell 5.1 for OS compatibility.
If the Answer is helpful, please click Accept Answer and Up-Vote, so that it can help others in the community looking for help on similar topics.