Skip to content

Instantly share code, notes, and snippets.

@MatthewJDavis
Created February 26, 2020 01:54
Show Gist options
  • Select an option

  • Save MatthewJDavis/4dd470641f69316e8655f7fe4c6eb13d to your computer and use it in GitHub Desktop.

Select an option

Save MatthewJDavis/4dd470641f69316e8655f7fe4c6eb13d to your computer and use it in GitHub Desktop.
Basic init with PowerShell script for demo
New-Item -Path 'C:\assets' -ItemType Directory
$text= @'
This file was provisioned with the azure virtual machine extension resource using Terraform.
https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows
This is just a text file but a script similar to this could be run to register with a config managemnt solution, do basic
provisioning etc.
'@
Set-Content -Path 'C:\assets\provision.txt' -Value $text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment