this image dosnt need a user and password set , when creating the vm in azure portal its not asking for a user and password , when running terraform it fails with missing user name or password
but when i set
admin_username = "admin"
admin_password = "Passw0rd"
disable_password_authentication = false
it fails with
Virtual Machine Name: "BackBox"): compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidParameter" Message="Parameter 'osProfile' is not allowed." Target="osProfile"
Expected Behaviour
create a vm from comunity image and add username and password later in the install process of the vm
Actual Behaviour
terraform plan works
terraform apply fails with
Virtual Machine Name: "BackBox"): compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidParameter" Message="Parameter 'osProfile' is not allowed." Target="osProfile"
Is there an existing issue for this?
Community Note
Terraform Version
1.6.5
AzureRM Provider Version
3.98.0
Affected Resource(s)/Data Source(s)
azurerm_linux_virtual_machine
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
create a vm from comunity image and add username and password later in the install process of the vm
Actual Behaviour
terraform plan works terraform apply fails with Virtual Machine Name: "BackBox"): compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidParameter" Message="Parameter 'osProfile' is not allowed." Target="osProfile"
Steps to Reproduce
terraform apply
Important Factoids
No response
References
No response