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

PowerShell72 not supported for 'runbook_type' during terraform plan #504

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

Comments

@msetogecko
Copy link

resource "azurerm_automation_runbook" "res-10164" { automation_account_name = "my_aa_account_name" content = "my_runbook_content" description = "my_runbook_description." location = "eastus2" log_activity_trace_level = 9 log_progress = false log_verbose = false name = "my_runbook_name" resource_group_name = "my_aa_rg_name" runbook_type = "PowerShell72" depends_on = [ azurerm_automation_account.res-13, ] }

Error:

Error: expected runbook_type to be one of ["Graph" "GraphPowerShell" "GraphPowerShellWorkflow" "PowerShell" "Python2" "Python3" "PowerShellWorkflow" "Script"], got PowerShell72

@stemaMSFT
Copy link
Member

Hey @msetogecko, what version of the azurerm provider are you using? aztfexport defaults to exporting the latest version of azurerm which supports the PowerShell72 option, but if you're running on an older version of azurerm the PowerShell72 value is invalid for runbook_type.

@magodo magodo added the question Further information is requested label Feb 19, 2024
@magodo
Copy link
Collaborator

magodo commented Feb 19, 2024

@stemaMSFT The latest release of aztfexport pins to v3.77.0 of the provider (see https://github.com/Azure/aztfexport/releases/tag/v0.14.0). Whilst the PowerShell72 is supported in v3.86.0 (see hashicorp/terraform-provider-azurerm#23980).

@msetogecko Before we create a new release to pin a newer provider version, you can use --provider-version option to select the provider version explicitly, e.g. use --provider-version v3.92.0 to pick the latest version (at this moment).

@magodo
Copy link
Collaborator

magodo commented Aug 9, 2024

This should have been fixed in the latest release v0.14.2.

@magodo magodo closed this as completed Aug 9, 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