diff --git a/app/models/manageiq/providers/azure/cloud_manager/vm_or_template_shared/scanning.rb b/app/models/manageiq/providers/azure/cloud_manager/vm_or_template_shared/scanning.rb index cbffcc4a..c20c5917 100644 --- a/app/models/manageiq/providers/azure/cloud_manager/vm_or_template_shared/scanning.rb +++ b/app/models/manageiq/providers/azure/cloud_manager/vm_or_template_shared/scanning.rb @@ -25,7 +25,7 @@ def perform_metadata_scan(ost) vm_args[:image_uri] = uid_ems end else - vm_args[:resource_group] = resource_group + vm_args[:resource_group] = resource_group.name vm_args[:snapshot] = ost.scanData["snapshot"]["name"] unless managed_disk? end