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
| function Get-GitBranch { | |
| [CmdletBinding()] | |
| param ( | |
| ) | |
| begin { | |
| $branch = Invoke-Expression -Command "git branch --all" | |
| $current = @() | |
| $local = @() |
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
| function Get-GitStatus { | |
| [CmdletBinding()] | |
| param () | |
| begin { | |
| # TODO: if not-in-git-dir | |
| $Status = Invoke-Expression -Command "git -c core.quotepath=false status --short" |
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
| { | |
| "mode": "Indexed", | |
| "parameters": {}, | |
| "policyRule": { | |
| "if": { | |
| "allOf": [ | |
| { | |
| "field": "type", | |
| "equals": "Microsoft.Network/networkSecurityGroups" | |
| } |
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
| { | |
| "mode": "All", | |
| "policyRule": { | |
| "if": { | |
| "allOf": [ | |
| { | |
| "not": { | |
| "anyOf": [ | |
| { | |
| "contains": "Microsoft.Network/applicationGateway", |
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
| function Write-Log { | |
| [CmdletBinding()] | |
| param ( | |
| [Parameter(Mandatory = $true)] | |
| [ValidateSet("Information", "Warning", "Error", "Verbose", "Debug")] | |
| [string]$Level, | |
| [Parameter(Mandatory = $false)] | |
| [string]$Topic, |
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
| { | |
| "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "subnets": { | |
| "type": "array" | |
| } | |
| }, | |
| "variables": { | |
| }, |
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
| #Requires -Modules Az.Accounts, Az.Compute, Az.Resources | |
| function Get-AzCECompliance { | |
| [CmdletBinding()] | |
| param ( | |
| ) | |
| begin { | |
| Write-Verbose -Message ("Initiating function " + $MyInvocation.MyCommand + " begin") |
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
| #Requires -Modules Az.Accounts, Az.Storage | |
| function Get-AzStorageAccountReplication() { | |
| <# | |
| .SYNOPSIS | |
| Get-AzStorageAccountReplication | |
| .DESCRIPTION | |
| Retrieves the latest replication status for a given Storage Account (RA-GRS) | |
| .EXAMPLE |
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
| { | |
| "type": "Microsoft.Compute/virtualMachines/extensions", | |
| "apiVersion": "2015-06-15", | |
| "name": "[concat(parameters('vmName'),'/TeamServicesAgentLinux')]", | |
| "location": "[parameters('location')]", | |
| "properties": { | |
| "publisher": "Microsoft.VisualStudio.Services", | |
| "type": "TeamServicesAgentLinux", | |
| "typeHandlerVersion": "1.0", | |
| "autoUpgradeMinorVersion": true, |
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
| { | |
| "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "username": { | |
| "type": "string" | |
| }, | |
| "publicKey": { | |
| "type": "securestring" | |
| } |