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
| # In the directory you want to make the local GIT repository: | |
| sudo mkdir arm_repo | |
| cd arm_repo | |
| git clone https://youruser@dev.azure.com/yourname/ARM_/_git/ARM_ | |
| # Edit you JSON ARM templates in VSCode and push to your remote repository. (assuming files don't exist): | |
| git add . | |
| git commit -m "adding new ARM templates" | |
| git push |
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": { | |
| "vaultName": { | |
| "type": "string", | |
| "metadata": { | |
| "description": "Name of the Vault" | |
| } | |
| }, |
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" | |
| }, |
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
| 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 -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
| # 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
| { | |
| "$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." | |
| } |
OlderNewer