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
| #!/bin/bash | |
| set -e | |
| #The โset โeโ allows an exception to throw where it finds the error | |
| #and then the halt execution. Error message and line number displayed (in lieu of me using more robust error handling logic) | |
| # Execute this script your Hugo site directory (e.g mine is /%fullcanoicalpath%/nicklittle | |
| # Using AWS CLI V2, setup using `aws configure sso` FIRST | |
| #Variable Declaration, add your CloudFront distribtuion ID, S3 bucket name, and AWS Profile Name |
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/deploymentParameters.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "location": { | |
| "value": "Australia East" | |
| }, | |
| "vmList": { | |
| "value": "vm01,vm02,vm03" | |
| }, |
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": { | |
| "vmList": { | |
| "type": "string", | |
| "minLength": 1, | |
| "metadata": { | |
| "description": "List of virtual machines to be domain joined, if using multiple VMs, make their names comma separate. E.g. VM01, VM02, VM03." | |
| } |
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/deploymentParameters.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "location": { | |
| "value": "Central US" | |
| }, | |
| "vmList": { | |
| "value": "nick-vm, nick-vm1" | |
| }, |
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": { | |
| "vmList": { | |
| "type": "string", | |
| "minLength": 1, | |
| "metadata": { | |
| "description": "List of virtual machines to be domain joined, if using multiple VMs, make their names comma separate. E.g. VM01, VM02, VM03." | |
| } |
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
| # Set deployment variables | |
| $name = "ExampleDeployment" #Modify this per deployment | |
| $template = "/ARM_repo/Microsoft.RecoveryServices/VMBackupVault/rsv_vault_create.json" | |
| $params = "/ARM_repo/Microsoft.RecoveryServices/VMBackupVault/params_rsv.json" | |
| # Deploy template and params | |
| New-AzureRmResourceGroupDeployment | |
| -Name $name ` | |
| -TemplateFile $template ` | |
| -TemplateParameterFile $params |
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
| New-AzureRmResourceGroupDeployment -Name ExampleDeployment -TemplateFile rsv.json -TemplateParameterFile rsv_params.json |
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
| Login-AzureRmAccount |
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
| New-AzureRmResourceGroupDeployment -Name ExampleDeployment -TemplateUri https://abc12345.blob.core.windows.net/templates/create_rg.json ` -TemplateParameterUri https://abc12345.blob.core.windows.net/templates/params_rg.json |
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": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "vaultName": { | |
| "value": "VMBackupVault" | |
| }, | |
| "location":{ | |
| "value": "Australia East" | |
| }, |
NewerOlder