Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The argument "password" is required, but no definition was found #502

Open
msetogecko opened this issue Feb 14, 2024 · 2 comments
Open

The argument "password" is required, but no definition was found #502

msetogecko opened this issue Feb 14, 2024 · 2 comments
Labels
question Further information is requested

Comments

@msetogecko
Copy link

On this part of main.tf ::

resource "azurerm_automation_credential" "res-18" { automation_account_name = "my_aa_account_name" name = "LogAnalyticsWorkspace-Key" resource_group_name = "my_aa_rg_name" username = "LogAnalyticsWorkspace-Key" depends_on = [ azurerm_automation_account.res-13, ] }

Getting this error during terraform plan

@stemaMSFT
Copy link
Member

Hey @msetogecko did you post the error? Not seeing an error message or sccreenshot.

@stemaMSFT
Copy link
Member

Without looking at the error, my guess is that you will need to set/define the password definition yourself. As the documentation states here: https://learn.microsoft.com/en-us/azure/developer/terraform/azure-export-for-terraform/export-terraform-concepts#write-only-properties

Certain properties within AzureRM are write-only and aren't included in the generated code that Azure Export for Terraform creates. The issue is addressed by defining the property after exporting to HCL code.

This is likely the error you're facing with the password property.

@magodo magodo added the question Further information is requested label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants