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
{ | |
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json", | |
"type": "AdaptiveCard", | |
"version": "1.0", | |
"body": [ | |
{ | |
"type": "Container", | |
"items": [ | |
{ | |
"type": "TextBlock", |
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
AWSTemplateFormatVersion: '2010-09-09' | |
Transform: AWS::Serverless-2016-10-31 | |
Description: > | |
Sample SAM Template for AWSLambdaTest | |
# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst | |
Globals: | |
Function: | |
Timeout: 10 |
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
{ | |
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"vaultName": { | |
"value": "RSvault1" | |
}, | |
"skuTier": { | |
"value": "Standard" | |
}, |
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
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 | |
} |
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
$subscriptionId = '<your subscription id>' | |
$deployment = '<unique deployment name>' | |
$configurationFile = "$PSScriptRoot\\Data\\RecoveryVaultConfiguration.json" | |
$configurationData = (Get-Content $configurationFile -Raw | ConvertFrom-Json).ConfigurationItems | |
Login-AzureRmAccount | |
Select-AzureRmSubscription -SubscriptionId $subscriptionId | |
New-AzureRmResourceGroup -Name $configurationData.ResourceGroup.Name -Location $configurationData.Location.Name -Force |
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
{ | |
"ConfigurationItems": { | |
"ResourceGroup": { | |
"Name": "PESTERTESTING-rg" | |
}, | |
"Location": { | |
"Name": "East US 2" | |
}, | |
"RecoveryVault": { | |
"Name": "RSvault1", |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"vaultName": { | |
"type": "string", | |
"metadata": { | |
"description": "Name of the Vault" | |
} | |
}, |
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
DEBUG: 4:13:20 PM - TestAzureResourceGroupDeploymentCmdlet begin processing with ParameterSet 'Deployment via template file without parameters'. | |
DEBUG: 4:13:20 PM - using account id '[email protected]'... | |
DEBUG: [Common.Authentication]: Authenticating using Account: '[email protected]', environment: 'AzureCloud', tenant: '414efc33-68fe-4520-802f-aea4401192d0' | |
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : | |
DEBUG: 09/20/2017 20:13:20: de1aeee7-690a-4798-bce6-4066bed44690 - AcquireTokenHandlerBase: === Token Acquisition started: | |
Authority: https://login.microsoftonline.com/414efc33-68fe-4520-802f-aea4401192d0/ | |
Resource: https://management.core.windows.net/ | |
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2 | |
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (13 items) | |
Authentication Target: User |
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
--- | |
timestamp: 2017-09-19 17:22:44 UTC | |
kitchen_version: 1.17.0 | |
plugins: | |
driver: | |
Vagrant: | |
class: Kitchen::Driver::Vagrant | |
version: 1.2.1 | |
api_version: 2 | |
provisioner: |