Skip to content

Instantly share code, notes, and snippets.

View weeyin83's full-sized avatar

Sarah Lean weeyin83

View GitHub Profile
@weeyin83
weeyin83 / GitHubActionsVMCreations.ps1
Created January 6, 2020 08:46
This script will deploy a virtual machine within Azure utilising GitHub Actions as the deployment technology.
<#
.SYNOPSIS
Deploys a virtual machine in Azure using GitHub Actions
.DESCRIPTION
This script will deploy a virtual machine within Azure utilising GitHub Actions as the deployment technology.
.OUTPUTS
terraform state pull > state_backup.json
terraform state rm "azurerm_resource_group.rg"
@weeyin83
weeyin83 / winget-laptoprebuild.ps1
Last active January 27, 2024 02:11
Install applications using WinGet
winget install --id git.git -h ; winget install --id Microsoft.VisualStudioCode -h; winget install --id Putty.Putty -h ; winget install --id spotify.spotify -h ; winget install "windows terminal" -h ; winget install --id jabra.direct -h ; winget install --id VideoLAN.VLC -h ; winget install --id Microsoft.PowerToys -h ; winget install --id whatsapp.whatsapp -h ; winget install --id zoom.zoom -h ; winget install --id SlackTechnologies.Slack -h ; winget install --id microsoft.powershell -h ;
@weeyin83
weeyin83 / gist:88317e2ec2f1b274863b42aa696bd689
Created January 16, 2024 08:40
azure-arc-agent-show.sh
azcmagent show
@weeyin83
weeyin83 / gist:3d99257598e3dc8d8739d3969608c8a9
Created January 16, 2024 08:40
azure-arc-agent-version.sh
azcmagent version
git remote update - prune
terraform init
terraform apply -auto-approve
cd clouddrive/Terraform-Backend-configuration/
export GITHUB_TOKEN=PAT_TOKEN_VALUE