Open cdiskan opened 2 weeks ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Daya-Patil.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Daya-Patil.
Please share the the debug logs for Restore-AzRecoveryServicesBackupItem command after adding -Debug parameter
Description
When using Restore-AzRecoveryServicesBackupItem the -RestoreOnlyOSDisk does not function as designed.
Using the switch is accepted in Powershell, however the restore jobs that are created include all virtual disks associated with the restore point, not just the OS disk.
This can be confirmed by the JSON files created in the storage account used as a restore cache, which shows all disks included.
{ "plan": null, "properties.hardwareProfile": { "vmSize": "Standard_D2as_v5", "vmSizeProperties": null }, "properties.storageProfile": { "imageReference": null, "osDisk": { "osType": "Windows", "encryptionSettings": null, "name": "VMNAME-osdisk-20240826-184151", "vhd": { "uri": "https://STORAGEACCOUNTNAME.blob.core.windows.net/VMNAME-9ad779b5449840b79093574a90fd5eac/VMNAME-osdisk-20240826-184151.vhd" }, "image": null, "caching": "ReadWrite", "writeAcceleratorEnabled": null, "diffDiskSettings": null, "createOption": "Attach", "diskSizeGB": null, "managedDisk": null, "deleteOption": null }, "dataDisks": [ { "lun": 0, "name": "VMNAME-datadisk-000-20240826-184151", "vhd": { "uri": "https://STORAGEACCOUNTNAME.blob.core.windows.net/VMNAME-9ad779b5449840b79093574a90fd5eac/VMNAME-datadisk-000-20240826-184151.vhd" }, "image": null, "caching": "None", "writeAcceleratorEnabled": null, "createOption": "Attach", "diskSizeGB": null, "managedDisk": null, "toBeDetached": null, "diskIOPSReadWrite": null, "diskMBpsReadWrite": null, "detachOption": null, "deleteOption": null } ], "diskControllerType": null }, "properties.additionalCapabilities": null, "properties.osProfile": null, "properties.networkProfile": { "networkInterfaces": [ { "properties.primary": true, "properties.deleteOption": null, "id": "/subscriptions/SUBID/resourceGroups/RGNAME/providers/Microsoft.Network/networkInterfaces/nic-VMNAME-00" } ], "networkApiVersion": null, "networkInterfaceConfigurations": null }, "properties.securityProfile": null, "properties.diagnosticsProfile": null, "properties.availabilitySet": null, "properties.virtualMachineScaleSet": null, "properties.proximityPlacementGroup": null, "properties.priority": null, "properties.evictionPolicy": null, "properties.billingProfile": null, "properties.host": null, "properties.hostGroup": null, "properties.provisioningState": null, "properties.instanceView": null, "properties.licenseType": null, "properties.vmId": null, "properties.extensionsTimeBudget": null, "properties.platformFaultDomain": null, "properties.scheduledEventsProfile": null, "properties.userData": null, "properties.capacityReservation": null, "properties.applicationProfile": null, "properties.timeCreated": null, "resources": null, "identity": null, "zones": null, "extendedLocation": null, "id": null, "name": null, "type": null, "location": "eastus", "tags": { } }
Issue script & Debug output
Environment data
Module versions
Error output