Skip to content

Commit

Permalink
Added InstanceView to Get function (#22851)
Browse files Browse the repository at this point in the history
  • Loading branch information
ned1313 authored Aug 8, 2023
1 parent 8fed53d commit de498c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/compute/virtual_machine_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit de498c8

Please sign in to comment.