diff --git a/builtin/providers/azurerm/resource_arm_virtual_machine.go b/builtin/providers/azurerm/resource_arm_virtual_machine.go index feba29258..0f763cd7c 100644 --- a/builtin/providers/azurerm/resource_arm_virtual_machine.go +++ b/builtin/providers/azurerm/resource_arm_virtual_machine.go @@ -496,7 +496,7 @@ func resourceArmVirtualMachineCreate(d *schema.ResourceData, meta interface{}) e StorageProfile: &storageProfile, } - if v, ok := d.GetOk(""); ok { + if v, ok := d.GetOk("license_type"); ok { license := v.(string) properties.LicenseType = &license }