I am trying to automate DataGateway in Azure and recently in powershell 7 were released library to manage it. But the problem that Azure DSC working with Windows Powershell 5 and even if VM have installed powershell 7 it's not working.
Can someone suggest a proper way to do it?
Enabling the Execution Policy:
Installing the Latest Version of NuGet and PowerShellGet
Creating the Foo Folder
These commands use a PowerShell technique known as splatting. for more information, you can type:
Downloading the PowerShell 7 Installation Script
Viewing Installation File Help Information
Installing PowerShell 7
The installation script that downloads the PowerShell 7 MSI Installation package then runs this code silently.
the name of the executable program you run to bring up the PowerShell 7 console is pwsh.exe.
Another noticeable difference is that with PowerShell 7, there are no .PS1XML files.
Examining the Installation Folder
Viewing Module Folder Locations
Viewing Profile File Locations:
Inside the ISE
from Windows PowerShell Console
Starting PowerShell 7
Open pwsh.exe, and hit Enter to open a PowerShell 7 console. After you open the PowerShell 7 console, verify the version by viewing the $PSVersionTable variable
Viewing New Locations for Module Folders
Viewing New Locations for Profile Files