Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dbroeglin/dsc-dev
DSC Configuration for setting up a generic Windows PowerShell / C# dev virtual machine
https://github.com/dbroeglin/dsc-dev
configuration devops dsc powershell windows
Last synced: 11 days ago
JSON representation
DSC Configuration for setting up a generic Windows PowerShell / C# dev virtual machine
- Host: GitHub
- URL: https://github.com/dbroeglin/dsc-dev
- Owner: dbroeglin
- License: mit
- Created: 2017-05-02T13:24:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-22T09:30:49.000Z (over 6 years ago)
- Last Synced: 2024-08-13T07:05:36.612Z (4 months ago)
- Topics: configuration, devops, dsc, powershell, windows
- Language: PowerShell
- Homepage:
- Size: 350 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - dbroeglin/dsc-dev - DSC Configuration for setting up a generic Windows PowerShell / C# dev virtual machine (PowerShell)
README
# DSC Developer VM setup
DSC Configuration for setting up a generic Windows PowerShell / C# dev virtual machine
# Virtual Machine Setup
1. Setup the VM
VERSION=1802
DOWNLOAD_DIR=$HOME/Downloads
ovftool --hideEula --extraConfig:vhv.enable=true --allowAllExtraConfig $DOWNLOAD_DIR/WinDev${VERSION}Eval.VMware/Windev${VERSION}Eval.ovf ~/Documents/Virtual\ Machines.localized/
# we should have virtualhw.version = "11" :
# v1704 required:
# sed -i -e 's/guestos = "other-64"/guestos = "windows9-64"/' ~/Documents/Virtual\ Machines.localized/Windev${VERSION}Eval.vmwarevm/WinDev${VERSION}Eval.vmxvmrun start ~/Documents/Virtual\ Machines.localized/Windev${VERSION}Eval.vmwarevm
1. Install VMWare Guest Tools (if required you can upgrade the VMWare tools with the following commands):vmrun installTools ~/Documents/Virtual\ Machines.localized/Windev${VERSION}Eval.vmwarevm/Windev${VERSION}Eval.vmx
then run `D:\setup64.exe` to install the tools and restart when asked to.
1. Share `~/Sources/dsc-dev/`vmrun enableSharedFolders ~/Documents/Virtual\ Machines.localized/WinDev${VERSION}Eval.vmwarevm/Windev${VERSION}Eval.vmx
vmrun addSharedFolder ~/Documents/Virtual\ Machines.localized/WinDev${VERSION}Eval.vmwarevm/Windev${VERSION}Eval.vmx dsc-dev ~/Sources/dsc-dev
1. Add Language/Keyboard settingsSet-WinUserLanguageList -LanguageList fr-CH -Force
1. Take a snapshot:
vmrun snapshot ~/Documents/Virtual\ Machines.localized/Windev1802Eval.vmwarevm/Windev1802Eval.vmx "Initial State"
1. In PowerShell *as administrator*:
net use z: "\\vmware-host\Shared Folders"
cd z:\dsc-dev
Set-ExecutionPolicy -ExecutionPolicy Bypass -Force
.\Run.ps1 -WithCopy -Verbose# References
## Troubleshooting DSC
* https://docs.microsoft.com/fr-fr/powershell/dsc/troubleshooting?tduid=(a72d1576be339a12893f2268dc8dee3f)(256380)(2459594)(TnL5HPStwNw-G3YawjTSXxm43ytsqcG1SQ)()#my-resources-won-t-update-how-to-reset-the-cache&ranMID=24542&ranEAID=TnL5HPStwNw&ranSiteID=TnL5HPStwNw-G3YawjTSXxm43ytsqcG1SQ
* https://ingogegenwarth.wordpress.com/2015/11/11/powershell-desired-state-configurationdschow-to-enforce-a-consistency-check/# TODOs
* Install AzureRM module
* Install AzureAD module
* Install nuget CLI# Misc
$profile = Get-NetConnectionProfile -InterfaceAlias Ethernet0; $profile.NetworkCategory = 'Priva
te'; Set-NetConnectionProfile -InputObject $profile
& "winrm" set winrm/config '@{MaxEnvelopeSizekb="8192"}'