This file contains hidden or 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
$Test = [PSCustomObject] @{ | |
FirstName = 'Stefan' | |
LastName = 'Stranger' | |
#"Difffrent parametr" = 'ok' | |
} | |
function Get-WhereObject { | |
[cmdletBinding()] | |
param( | |
[Parameter(Mandatory, Position = 0, ValueFromPipeline)][PSCustomObject] $Test |
This file contains hidden or 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
<# | |
PowerShell script to retrieve Azure DevOps Yaml Pipelines | |
Requires: | |
- PSDevOps PowerShell Module (Install-Module PSDevOps) | |
- powershell-yaml PowerShell Module (Install-Module powershell-yaml) | |
- Personal Access Token for Azure DevOps Organization and Project where you want to retrieve the Yaml Pipelines | |
Example: Return all Tasks within a job and steps. | |
$YamlPipelines | Select-Object -ExpandProperty Yaml | | |
Select-Object -ExpandProperty jobs | |
This file contains hidden or 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
# Check if the name myRegistry can be used for a new Azure Registry Container. | |
# More info: https://docs.microsoft.com/en-us/rest/api/containerregistry/registries/checknameavailability | |
#region variables | |
$ACRName = 'myRegistry' | |
$ResourceType = 'Microsoft.ContainerRegistry/registries' | |
#endregion | |
#region Get AccessToken |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="7zip.install" version="19.0" /> | |
<package id="ARMClient" version="1.8.0" /> | |
<package id="autoruns" version="13.98.20200930" /> | |
<package id="azure-cli" version="2.14.2" /> | |
<package id="azure-functions-core-tools-3" version="3.0.2996" /> | |
<package id="chezmoi" version="1.8.7" /> | |
<package id="chocolatey" version="0.10.15" /> | |
<package id="chocolatey-core.extension" version="1.3.5.1" /> |
This file contains hidden or 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
$MyDashboard = New-UDDashboard -Title "Hello World" -Content { | |
New-UDCard -Title "Hello World - Universal Dashboard" | |
} | |
Start-UDDashboard -Port 8585 -Dashboard $MyDashboard -Name 'HelloDashboard' -Wait |
This file contains hidden or 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
<# | |
PowerShell script to create Azure DevOps WIKI Markdown Documentation | |
https://docs.microsoft.com/en-US/rest/api/azure/devops/wiki/pages/create%20or%20update?view=azure-devops-rest-5.0#examples | |
https://medium.com/digikare/create-automatic-release-notes-on-azuredevops-f235376ec533 | |
Requirements: | |
- PSDocs PowerShell Module (Install-Module -Name PSDocs) | |
#> |
NewerOlder