Skip to content

Instantly share code, notes, and snippets.

@takekazuomi
Last active December 1, 2017 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takekazuomi/e8bdc99a8fa56f5875e753915001bdc6 to your computer and use it in GitHub Desktop.
Save takekazuomi/e8bdc99a8fa56f5875e753915001bdc6 to your computer and use it in GitHub Desktop.
{
"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