Skip to content

Instantly share code, notes, and snippets.

View MarkWarneke's full-sized avatar
🐒
lounging

Mark Warneke MarkWarneke

🐒
lounging
View GitHub Profile
@ivanthelad
ivanthelad / dashboardtemplate.json
Created May 8, 2020 07:42
Azure AKS template to show breakdown of log costs from application controllers
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspacesubscriptionid": {
"defaultValue": "Insert_Subscription_Id",
"type": "String",
"metadata": {
"description": "Subscription id of the log analytics workspace is deployed. Can be found under 'Log Analytics Workspace -> Overview' "
}
@thedavecarroll
thedavecarroll / Get-GitLog.ps1
Last active December 19, 2019 18:13
A PowerShell function for reading the git log of a local repository which is returned as an array of PSCustomObjects.
function Get-GitLog {
[CmdLetBinding(DefaultParameterSetName='Default')]
param (
[Parameter(ParameterSetName='Default',ValueFromPipeline,Mandatory)]
[Parameter(ParameterSetName='SourceTarget',ValueFromPipeline,Mandatory)]
[ValidateScript({Resolve-Path -Path $_ | Test-Path})]
[string]$GitFolder,
[Parameter(ParameterSetName='SourceTarget',Mandatory)]
@aw230012
aw230012 / New-RecoveryVault.Tests.ps1
Created January 3, 2018 18:16
New Recovery Vault Pester Tests
Describe 'New-RecoveryVault Tests' {
$configurationFile = "$PSScriptRoot\\..\\Data\\RecoveryVaultConfiguration.json"
$configurationData = (Get-Content $configurationFile -Raw | ConvertFrom-Json).ConfigurationItems
Context 'Resource Group Tests' {
$rg = Get-AzureRmResourceGroup -Name $configurationData.ResourceGroup.Name
It 'Resource Group Exists' {
$rg | Select-Object -ExpandProperty ResourceGroupName | Should Be $configurationData.ResourceGroup.Name
}