hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.59k stars 4.63k forks source link

azurerm_windows_virtual_machine unable to login windows VM with admin password but after reset of password login successful #27236

Open deepak-spec opened 2 months ago

deepak-spec commented 2 months ago

Is there an existing issue for this?

Community Note

Terraform Version

1.5.2

AzureRM Provider Version

3.116.0

Affected Resource(s)/Data Source(s)

azurerm_windows_virtual_machine

Terraform Configuration Files

admin_password  = "Testing@453"
  #Password need to be reset after VM provisioning
  admin_username = "testingadmin"

Debug Output/Panic Output

able to login to windows VM after password reset, it is not working with password used during provisioning via terraform

Expected Behaviour

No response

Actual Behaviour

No response

Steps to Reproduce

No response

Important Factoids

No response

References

No response

harshavmb commented 2 months ago

Hi @deepak-spec ,

Have you used marketplace or custom images to provision VMs? This appears to be most likely an image issue than Terraform issue as cloud-init or windows provisioning agent is broken.

Worth flagging this with Microsoft support for further investigation.