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

azurerm_automation_software_update_configuration does not accept a subscription id for scope in azure_query block #18594

Closed
1 task done
daisy-timms-xlab opened this issue Sep 30, 2022 · 4 comments
Labels

Comments

@daisy-timms-xlab
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

0.14.5

AzureRM Provider Version

3.25.0

Affected Resource(s)/Data Source(s)

azurerm_automation_software_update_configuration

Terraform Configuration Files

resource "azurerm_automation_software_update_configuration" "example" {

  name                  = "example"
  automation_account_id = azurerm_automation_account.example_account.id
  operating_system      = "Linux"

  linux {
    classification_included = "Critical"
    reboot                  = "IfRequired"
  }

  duration = "PT2H"
  target {
    azure_query {
      scope      = [data.azurerm_subscription.current.id]
      tag_filter = "All"
      tags {
        tag    = "Example"
        values = ["example tag"]
      }
    }
  }
}

Debug Output/Panic Output

Error: ID was missing the 'resourceGroups' element 
September 29th 2022 17:58:17Error
  on patching.tf line 46, in resource "azurerm_automation_software_update_configuration" "example": 
September 29th 2022 17:58:17Error
  46:       scope      = [data.azurerm_subscription.current.id]

Expected Behaviour

Expected to be able to apply azurerm_automation_software_update_configuration with subscription id provided for the scope of the azure_query block rather than resourceGroup ids

Actual Behaviour

"Error: ID was missing the 'resourceGroups' element" when attempting to apply azurerm_automation_software_update_configuration with subscription id provided for the scope of the azure_query block

Steps to Reproduce

No response

Important Factoids

No response

References

No response

@nickwb
Copy link

nickwb commented Oct 20, 2022

Looks like there might be a fix for this on the way: 7553745

#18860

Thanks @wuxu92

@wuxu92
Copy link
Contributor

wuxu92 commented Oct 20, 2022

@nickwb Yes this is duplicated with #18835. @daisy-timms-xlab could you please close this issue for it has been fixed?

@rcskosir
Copy link
Contributor

rcskosir commented Jun 1, 2023

@daisy-timms-xlab Thanks for taking the time to submit this issue. It looks like this is a duplicate of #18835 which has been resolved. I am going to go ahead and close this issue.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants