- Download Ubuntu 24.04
- In Hyper-V use "new" to create VM.
- Enter values in "new" VM wizard, select "Generation 2".
- Complete VM wizard.
- Right click physical computer in "Hyper-V Manager" and select "Settings...".
- Select "Security" and uncheck "Enable Secure Boot" checkbox.
This file contains 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
wget -qO- https://gist.githubusercontent.com/russellds/feb8b8d75dfb995b17d3470a1f432044/raw/install.sh | bash |
This file contains 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
|
This file contains 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
<# | |
.SYNOPSIS | |
Replace tokens in a file with values. | |
.DESCRIPTION | |
Finds tokens in a given file and replace them with values. It is best used to replace configuration values in a release pipeline. | |
.PARAMETER InputFile | |
The file containing the tokens. | |
This file contains 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
targetScope = 'subscription' | |
@description('The environment abbreviation.') | |
@allowed([ | |
'prod' | |
'prev' | |
'demo' | |
'test' | |
'dev' | |
'infra' |
This file contains 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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Remove Telemetry", | |
"type": "shell", | |
"command": "${workspaceFolder}/.vscode/scripts/RemoveTelemetry.ps1", | |
"args": [ | |
"-WorkspacePath", | |
"${workspaceFolder}" |
This file contains 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
param( | |
[string]$WorkspacePath | |
) | |
$InformationPreference = 'Continue' | |
Write-Information "Workspace Path: $( $WorkspacePath )" | |
Set-Location -Path $WorkspacePath | |
$telemetryStrings = @() |
This file contains 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
function doStuff { | |
param( | |
[string] | |
$Item, | |
[string] | |
$Value = 'default' | |
) | |
$htDoStuff.($Item) = $Value |
This file contains 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
function doStuff { | |
param( | |
[string] | |
$Item | |
) | |
$htDoStuff.($Item) = @{} | |
} | |
$stringFuncDoStuff = "${function:doStuff}" |
This file contains 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
# Empty Array to hold disks in boot disk always first order. | |
$disks = @() | |
# Identify the boot partition | |
$bootPartition = Get-WmiObject -Class Win32_DiskPartition | | |
Where-Object {$_.BootPartition} | |
# Identify the boot disk using the boot partition | |
$bootDisk = Get-WmiObject -Class Win32_DiskDrive | | |
Where-Object {$_.Index -eq $bootPartition.DiskIndex} | |
NewerOlder