diff --git a/src/plugin/manager/virtual_machines/instance_manager.py b/src/plugin/manager/virtual_machines/instance_manager.py index 3e243b0..ba648f8 100644 --- a/src/plugin/manager/virtual_machines/instance_manager.py +++ b/src/plugin/manager/virtual_machines/instance_manager.py @@ -159,15 +159,16 @@ def create_cloud_service(self, options, secret_data, schema): cloud_service_type=self.cloud_service_type, cloud_service_group=self.cloud_service_group, provider=self.provider, - data=vm_resource, + data=vm_resource["data"], account=subscription_data["subscription_id"], instance_type=vm_resource["data"]["compute"]["instance_type"], + ip_addresses=vm_resource["ip_addresses"], region_code=vm_resource["region_code"], reference=self.make_reference( vm_resource["data"]["compute"]["instance_id"], f"https://portal.azure.com/#@.onmicrosoft.com/resource/subscriptions/{subscription_data['subscription_id']}/resourceGroups/{resource_group_name}/providers/Microsoft.Compute/virtualMachines/{vm_resource['data']['compute']['instance_name']}/overview" ), - tags=vm.tags, + tags=vm_resource["tags"], data_format="dict" ) )