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": { | |
"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' " | |
} |
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-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)] |
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
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 | |
} |