From 7e86b7f4eaaf119af4426c78f52c23c4f7c2c507 Mon Sep 17 00:00:00 2001 From: ned1313 Date: Mon, 7 Aug 2023 16:56:52 -0400 Subject: [PATCH] Added InstanceView to Get function --- internal/services/compute/virtual_machine_data_source.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/compute/virtual_machine_data_source.go b/internal/services/compute/virtual_machine_data_source.go index ae41e032da5d..9b545a11f751 100644 --- a/internal/services/compute/virtual_machine_data_source.go +++ b/internal/services/compute/virtual_machine_data_source.go @@ -84,7 +84,7 @@ func dataSourceVirtualMachineRead(d *pluginsdk.ResourceData, meta interface{}) e id := parse.NewVirtualMachineID(subscriptionId, d.Get("resource_group_name").(string), d.Get("name").(string)) - resp, err := client.Get(ctx, id.ResourceGroup, id.Name, "") + resp, err := client.Get(ctx, id.ResourceGroup, id.Name, "InstanceView") if err != nil { if utils.ResponseWasNotFound(resp.Response) { return fmt.Errorf("%s was not found", id)