Skip to content

Commit

Permalink
Scripts changed
Browse files Browse the repository at this point in the history
  • Loading branch information
ibeerens committed Apr 23, 2024
1 parent 892de02 commit 627f5ec
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Here is a collection o# f resources I used to prepare for the GitHub Foundations
| Study guide | GitHub Foundations study guide | [link](https://assets.ctfassets.net/wfutmusr1t3h/1kmMx7AwI4qH8yIZgOmQlP/79e6ff1dfdee589d84a24dd763b1eef7/github-foundations-exam-study-guide__1_.pdf) |
| GitHub Foundations Learning Path | GitHub learning modules | [link](https://aka.ms/learn/github-foundations) |
| GitHub Skills | Learn to use GitHub with interactive <br/> courses | [link](https://skills.github.com/)
| GitHub Certification Fundamentals event | Join Microsoft Reactor and engage with <br/> startups and developers live on <br/> March 26, April 2, 9 and 16.| [link](https://developer.microsoft.com/en-us/reactor/series/S-1298/) |
| GitHub Certification Fundamentals events | 4 sessions available on Microsoft Reactor<br/> | [link](https://www.youtube.com/@MicrosoftReactor/search?query=github) |
| GitHub Certified tests | Free GitHub practice tests | [link](https://ghcertified.com/) |
| Exam Pro GitHub Foundations training | Exam Pro GitHub Foundations training <br/> Created by Andrew Brown | [link](https://www.exampro.co/github-foundations)
| GitHub Foundations Certification Course <br/> Pass the exam in 10 hours! | GitHub Foundations Certification Course <br/> Pass the exam in 10 hours! <br/> Created by Andrew Brown | [link](https://youtu.be/Jdc0i7RcBv8?si=qLh345Hjupre41qk)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ When the script has finished, reboot the VM.
.NOTES
Run as Administrator
Find WinGet packages: https://winget.run/
.LINK
https://www.ivobeerens.nl/blog/2024/04/create-a-windows-developer-environment/
.VERSIONS
1.0 19-04-2024 Creation
#>
Expand All @@ -111,27 +113,32 @@ if ($checkdir -eq $false){
}
# Install the latest Windows Package Manager (WinGet) version
Write-Host "Install WinGet"
$winget = Get-AppPackage -name 'Microsoft.DesktopAppInstaller'
if(!$winget) {
Write-Host "Install WinGet"
Invoke-WebRequest -Uri https://www.nuget.org/api/v2/package/Microsoft.UI.Xaml/2.8.6 -OutFile $downloadfolder"microsoft.ui.xaml.2.8.6.nupkg"
Rename-Item -Path $downloadfolder"microsoft.ui.xaml.2.8.6.nupkg" -NewName $downloadfolder"microsoft.ui.xaml.2.8.6.zip" -Force
Expand-Archive -path $downloadfolder"microsoft.ui.xaml.2.8.6.zip" -DestinationPath $downloadfolder
Add-AppxPackage -Path $downloadfolder"tools\AppX\x64\Release\Microsoft.UI.Xaml.2.8.appx"
Add-AppxPackage -Path $downloadfolder"tools\AppX\x86\Release\Microsoft.UI.Xaml.2.8.appx"
Invoke-WebRequest -Uri https://www.nuget.org/api/v2/package/Microsoft.UI.Xaml/2.8.6 -OutFile $downloadfolder"microsoft.ui.xaml.2.8.6.nupkg"
Rename-Item -Path $downloadfolder"microsoft.ui.xaml.2.8.6.nupkg" -NewName $downloadfolder"microsoft.ui.xaml.2.8.6.zip" -Force
Expand-Archive -path $downloadfolder"microsoft.ui.xaml.2.8.6.zip" -DestinationPath $downloadfolder
Add-AppxPackage -Path $downloadfolder"tools\AppX\x64\Release\Microsoft.UI.Xaml.2.8.appx"
Add-AppxPackage -Path $downloadfolder"tools\AppX\x86\Release\Microsoft.UI.Xaml.2.8.appx"
# List the Xaml versions
# Get-Appxpackage Microsoft.UI.Xaml.2.8 -allusers | Select-Object Name, Architecture
# List the Xaml versions
# Get-Appxpackage Microsoft.UI.Xaml.2.8 -allusers | Select-Object Name, Architecture
Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile $downloadfolder"Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile $downloadfolder"Microsoft.VCLibs.x64.14.00.Desktop.appx"
Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile $downloadfolder"Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile $downloadfolder"Microsoft.VCLibs.x64.14.00.Desktop.appx"
Add-AppxPackage $downloadfolder"Microsoft.VCLibs.x64.14.00.Desktop.appx"
Add-AppxPackage $downloadfolder"Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
Add-AppxPackage $downloadfolder"Microsoft.VCLibs.x64.14.00.Desktop.appx"
Add-AppxPackage $downloadfolder"Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
# Get-AppxPackage Microsoft.VCLibs.140.00 -allusers
# Get-AppxPackage Microsoft.VCLibs.140.00 -allusers
Write-Host "Winget Installed"
winget -v
Write-Host "Winget Installed"
winget -v
}
else {
Write-Host "Winget already installed"
}
# Install Azure CLI
Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile $downloadfolder\AzureCLI.msi
Expand Down Expand Up @@ -204,17 +211,19 @@ The following Visual Studio Code Extensions are installed: </br>
```powershell
<#
.TITLE
Install Visual Studio Code extensions
Install Visual Studio Code Extensions
Set the Git username and email address
.AUTHOR
Ivo Beerens
www.ivobeerens.nl
.DESCRIPTION
Install Visual Studio Code extensions
Install Visual Studio Code Extensions
.NOTES
Install VS Code extensions
List existing extensions: code --list-extensions
Extensions are stored in: %USERPROFILE%\.vscode\extensions
.LINK
https://www.ivobeerens.nl/blog/2024/04/create-a-windows-developer-environment/
.VERSIONS
1.0 19-04-2024 Creation
#>
Expand Down Expand Up @@ -250,14 +259,15 @@ git config --global user.email $git_password

## Testing the Azure login

With the **`az`** command you can test the Azure login and set the subscription to use. Here are the commands.
With the **`az`** command you can login to Azure and set the active subscription. Here are the commands.

### Login to Azure
```
az config set core.allow_broker=true
az account clear
az login
```

### List the active Subscription </br>
`az account list -o table`

Expand All @@ -266,6 +276,6 @@ az login

## Conclusion

These scripts can customized to deploy the software you need in your local development environment. You can automated the OS deployment by using Packer for example and run these scripts automatically to fully automate your local developer environment.
These scripts can be customized to deploy the software you need in your local development environment. You can automated the OS deployment by using Packer for example and run these scripts automatically to fully automate your local developer environment.

These scripts can be found on my [GitHub](https://github.com/ibeerens/dev-environment) repo.

0 comments on commit 627f5ec

Please sign in to comment.