Skip to content

Commit

Permalink
Set ignore case function for diffs on the managed data disk ids.
Browse files Browse the repository at this point in the history
This provides a way to work around hashicorp#582 by using the Azure Portal
to attach disks.
  • Loading branch information
jzampieron committed Feb 4, 2018
1 parent 4669d9d commit 36cf8ca
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions azurerm/resource_arm_virtual_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,11 @@ func resourceArmVirtualMachine() *schema.Resource {
},

"managed_disk_id": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Computed: true,
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Computed: true,
DiffSuppressFunc: ignoreCaseDiffSuppressFunc,
},

"managed_disk_type": {
Expand Down

0 comments on commit 36cf8ca

Please sign in to comment.