Fix VM Restore Point templates (#4)

This commit is contained in:
Naman Shah 2021-11-30 22:19:44 +05:30 коммит произвёл GitHub
Родитель 874c412ebd
Коммит 51ab2d6952
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 75 добавлений и 72 удалений

Просмотреть файл

@ -0,0 +1,27 @@
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"DiskName": {
"type": "string",
"defaultValue": "<DiskName>"
},
"DiskRestorePointResourceId": {
"type": "string",
"defaultValue": "/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroupName>/providers/Microsoft.Compute/restorePointCollections/<RestorePointCollectionName>/restorePoints/<RestorePointName>/diskRestorePoints/<DiskRestorePointName>"
}
},
"resources": [{
"type": "Microsoft.Compute/disks",
"apiVersion": "2020-12-01",
"name": "[parameters('DiskName')]",
"location": "[resourceGroup().location]",
"properties": {
"creationData": {
"createOption": "Restore",
"sourceResourceId": "[parameters('DiskRestorePointResourceId')]"
}
}
}
]
}

Просмотреть файл

@ -2,21 +2,23 @@
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"RPCName": {
"RestorePointCollectionName": {
"type": "string",
"defaultValue": "<RestorePointCollectionName>"
},
"RPCResourceId": {
"defaultValue": "/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroupName>/providers/Microsoft.Compute/restorePointCollections/<RestorePointCollectionName>",
"type": "String"
"RestorePointName": {
"type": "string",
"defaultValue": "<RestorePointName>"
},
"RestorePointCollectionResourceId": {
"type": "string",
"defaultValue": "/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroupName>/providers/Microsoft.Compute/restorePointCollections/<RestorePointCollectionName>"
}
},
"resources": [
{
"resources": [{
"type": "Microsoft.Compute/restorePointCollections/restorePoints",
"name": "[concat( parameters('RPCName'),'/rp1')]",
"apiVersion": "2020-06-01"
"name": "[concat(parameters('RestorePointCollectionName'),'/', parameters('RestorePointName'))]",
"apiVersion": "2021-03-01"
}
]
}

Просмотреть файл

@ -0,0 +1,26 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"RestorePointCollectionName": {
"type": "string",
"defaultValue": "<RestorePointCollectionName>"
},
"VMResourceId": {
"type": "string",
"defaultValue": "subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroupName>/providers/Microsoft.Compute/virtualMachines/<VMName>"
}
},
"resources": [{
"type": "Microsoft.Compute/restorePointCollections",
"name": "[parameters('RestorePointCollectionName')]",
"location": "[resourceGroup().location]",
"apiVersion": "2021-03-01",
"properties": {
"source": {
"id": "[parameters('VMResourceId')]"
}
}
}
]
}

Просмотреть файл

@ -1,23 +0,0 @@
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"resources": [
{
"type": "Microsoft.Compute/disks",
"apiVersion": "2020-12-01",
"name": "restore_disk2",
"location": "[resourceGroup().location]",
"properties": {
"creationData": {
"createOption": "Restore",
"sourceResourceId": "/subscriptions/49151e6d-fa6e-4985-ae85-00548ec78853/resourceGroups/dfgdf_group/providers/Microsoft.Compute/restorePointCollections/dfgdf_rpc1/restorePoints/rp1/diskRestorePoints/datadisk1_55133b68-112a-4207-a967-75a24220b963"
}
}
}
]
}

Просмотреть файл

@ -1,29 +0,0 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"VMName": {
"type": "string",
"defaultValue": "<VMName>"
},
"VMId": {
"defaultValue": "subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroupName>/providers/Microsoft.Compute/virtualMachines/<VMName>",
"type": "String"
}
},
"resources": [
{
"type": "Microsoft.Compute/restorePointCollections",
"name": "[concat(parameters('VMName'),'_rpc')]",
"location": "[resourceGroup().location]",
"apiVersion": "2020-06-01",
"properties": {
"source": {
"id": "[parameters('VMId')]"
}
}
}
]
}