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] $PAT=$null, | |
[string] $organization, | |
[string] $repository, | |
[string] $branchname, | |
[string] $teamProject, | |
[bool] $isInBuild=$true | |
) | |
function New-AzDoAuthenticationToken { |
- In creative mode, a place with lots of whiteboards. I tend to be drawing when I talk
- In productive mode, when work needs to be done, quiet space,or you'll find me with my noise cancelling headphones
- A space with enough (sun)light
- Good coffee and tea. Spoiled... yes, but I just don't like the "cheap" machine stuff
- A place where you can have a chat and talk about stuff that is non-work related
- Working from home works well for me since I have all the space and equipment I need, and I can balance it with family life.
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
# Login with you Azure account that has rights to create SPN's | |
$sqladminSPN = "blog-sql-admin" | |
az login | |
az ad app create --display-name $sqladminSPN | |
#Setting up SQL | |
$resourcegroup = "rg-blog-sql" | |
$sqlservername = "blog-sqlsrv-rvo" | |
$location = "westeurope" | |
$databasename="tododb" |
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
pool: | |
vmImage: 'ubuntu-latest' | |
trigger: | |
- master | |
- development | |
steps: | |
- task: PowerShell@2 | |
displayName: Determine source branch |
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
#Using the great extension in VS Code https://marketplace.visualstudio.com/items?itemName=humao.rest-client | |
#use the gist GetBasicAuthToken.ps1 to get a valid token from a PAT | |
@collectionurl=https://account.visualstudio.com | |
@token=Base64EncryptedPAT e.g. Basic ONOTAVALIDTOKEN=" | |
### | |
# Get all Available Branch Policies in the project | |
# --> value.id contains branch policy type id | |
GET {{collectionurl}}/_apis/projects/?api-version=1.0 |
There are many things to explore, but there is only so little time.
Pick and choose any of the assignments below, or explorer on your own.
As a nice repo to work with, you can use this one https://github.com/XpiritBV/GDBC2018-GDBCWebsite
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
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
cinst curl | |
cinst winrar | |
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
$password = ConvertTo-SecureString 'PAT' -AsPlainText -Force | |
$vstsCredential = New-Object System.Management.Automation.PSCredential 'vstsuseraccount-email', $password | |
Find-Module -Name roadtoalmUtils -Repository VSTSGallery -Credential $vstsCredential | |
install-Module -Name roadtoalmUtils -Repository VSTSGallery -Credential $vstsCredential | |
Get-Module -ListAvailable -Name roadtoalmUtils |
NewerOlder