Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
{
"resources": [
{
"type": "Microsoft.Resources/deployments",
"name": "nestedTemplate",
"apiVersion": "2017-05-10",
"resourceGroup": "[parameters('RemoteResourceGroup')]",
"subscriptionId": "[parameters('RemoteSubscriptionId')]",
"properties": {
"mode": "Incremental",
"template": {
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {},
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"name": "[parameters('RemoteStorageAccountName')]",
"apiVersion": "2015-06-15",
"location": "japanwest",
"properties": {
"accountType": "Standard_LRS"
}
}
]
},
"parameters": {}
}
},
{
"type": "Microsoft.Storage/storageAccounts",
"name": "[parameters('StorageAccountName')]",
"apiVersion": "2015-06-15",
"location": "[resourceGroup().location]",
"properties": {
"accountType": "Standard_LRS"
}
}
]
}
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"StorageAccountName": {
"type": "string"
},
"RemoteStorageAccountName": {
"type": "string"
},
"RemoteResourceGroup":{
"type": "string"
},
"RemoteSubscriptionId":{
"type": "string"
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.Resources/deployments",
"name": "nestedTemplate",
"apiVersion": "2017-05-10",
"resourceGroup": "[parameters('RemoteResourceGroup')]",
"subscriptionId": "[parameters('RemoteSubscriptionId')]",
"properties": {
"mode": "Incremental",
"template": {
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {},
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"name": "[parameters('RemoteStorageAccountName')]",
"apiVersion": "2015-06-15",
"location": "japanwest",
"properties": {
"accountType": "Standard_LRS"
}
}
]
},
"parameters": {}
}
},
{
"type": "Microsoft.Storage/storageAccounts",
"name": "[parameters('StorageAccountName')]",
"apiVersion": "2015-06-15",
"location": "[resourceGroup().location]",
"properties": {
"accountType": "Standard_LRS"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment