This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run this from an elevated PowerShell prompt. | |
# Kill Docker Desktop | |
Get-Process | Where-Object {$_.ProcessName -match 'Docker Desktop'} | Stop-Process -Force | |
# Restart the Hyper-V Virtual Machine Management Service | |
Stop-Service 'vmms' | |
Start-Service 'vmms' | |
# Start Docker Desktop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
READING LOGS | |
Let us say that I wish to check in detail that everything went well on my VM. How would I do that? I can log in to my VM from Azure and check the local logs. The files of interest to us will be the following two locations on VM hard drive: | |
C:\Packages\Plugins\Microsoft.Powershell.DSC\1.0.0.0 | |
C:\WindowsAzure\Logs\Plugins\Microsoft.Powershell.DSC\1.0.0.0 | |
You may find that your VM has a newer version of Powershell DSC extension,in which case the version number at the end of the path might be slightly different. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CLEAR # In an "I'm gonna put some life into this one" frame of mind. | |
$frameworkVersions = @{} | |
$frameworkVersions['378389'] = '.NET Framework 4.5' | |
$frameworkVersions['378675'] = '.NET Framework 4.5.1 (Server 2012 R2/Windows 8.1)' | |
$frameworkVersions['378758'] = '.NET Framework 4.5.1 (Windows 8/7)' | |
$frameworkVersions['379893'] = '.NET Framework 4.5.2' | |
$frameworkVersions['381029'] = '.NET Framework 4.6 Preview' | |
$frameworkVersions['393295'] = '.NET Framework 4.6 (Windows 10 Anniversary)' | |
$frameworkVersions['393297'] = '.NET Framework 4.6' |