In the Azure Migrate Installer powershell script, you can skip the installation of Visual C++ 2015 by adding the following line of code:
if (!(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{F75C5E1A-ABF5-4A8D-92A8-9BA9B93C2B60}" -Name DisplayName)) { Write-Output "Skipping VC++ 2015 installation." } else { Write-Output "Installing VC++ 2015."
This code checks the registry to see if Visual C++ 2015 is already installed on the system. If it is, it will skip the installation and print a message indicating that the installation is being skipped. If Visual C++ 2015 is not installed, it will proceed with the installation and print a message indicating that the installation is being performed.
You can add this code to the Azure Migrate Installer powershell script by opening the script in a text editor, such as Notepad, and adding the code at the appropriate point in the script.