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

itsm_receiver #18144

Closed
1 task done
farwind opened this issue Aug 26, 2022 · 2 comments · Fixed by #18190
Closed
1 task done

itsm_receiver #18144

farwind opened this issue Aug 26, 2022 · 2 comments · Fixed by #18190
Labels

Comments

@farwind
Copy link

farwind commented Aug 26, 2022

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

1.2.7

AzureRM Provider Version

3.19.1

Affected Resource(s)/Data Source(s)

azurerm_monitor_action_group

Terraform Configuration Files

monitor_action_group_itsm_receiver = {
     "itsm1" = {
       name                 = "itsm_receiver"
       workspace_id         = "00000000-0000-0000-0000-000000000000|00000000-0000-0000-0000-000000000000"
       connection_id        = "53de6956-42b4-41ba-be3c-xxxxxxxxxxx"
       ticket_configuration = "{}"
       region               = "ger-central"
     }
    }

dynamic "itsm_receiver" {
    for_each = var.monitor_action_group_itsm_receiver != null ? var.monitor_action_group_itsm_receiver : {}
    content {
      connection_id        = itsm_receiver.value.connection_id
      name                 = itsm_receiver.value.name
      region               = itsm_receiver.value.region
      ticket_configuration = itsm_receiver.value.ticket_configuration
      workspace_id         = itsm_receiver.value.workspace_id
    }
  }

Debug Output/Panic Output

module.monitor.azurerm_monitor_action_group.this[0]: Still creating... [6m0s elapsed]
module.monitor.azurerm_monitor_action_group.this[0]: Still creating... [6m10s elapsed]
module.monitor.azurerm_monitor_action_group.this[0]: Still creating... [6m20s elapsed]
module.monitor.azurerm_monitor_action_group.this[0]: Still creating... [6m30s elapsed]
module.monitor.azurerm_monitor_action_group.this[0]: Still creating... [6m40s elapsed]
module.monitor.azurerm_monitor_action_group.this[0]: Still creating... [6m50s elapsed]
module.monitor.azurerm_monitor_action_group.this[0]: Still creating... [7m0s elapsed]
module.monitor.azurerm_monitor_action_group.this[0]: Still creating... [7m10s elapsed]
module.monitor.azurerm_monitor_action_group.this[0]: Still creating... [7m20s elapsed]
module.monitor.azurerm_monitor_action_group.this[0]: Still creating... [7m30s elapsed]
module.monitor.azurerm_monitor_action_group.this[0]: Still creating... [7m40s elapsed]
module.monitor.azurerm_monitor_action_group.this[0]: Still creating... [7m50s elapsed]
╷
│ Error: creating or updating Action Group: (Name "monitordefaultgwa" / Resource Group "rg-example-monitorgwa"): insights.ActionGroupsClient#CreateOrUpdate: Failure responding to request: StatusCode=500 -- Original Error: autorest/azure: Service returned an error. Status=500 Code="Unknown" Message="Unknown service error" Details=[{"code":"InternalError","message":null}]
│
│   with module.monitor.azurerm_monitor_action_group.this[0],
│   on ../../main.tf line 13, in resource "azurerm_monitor_action_group" "this":
│   13: resource "azurerm_monitor_action_group" "this" {
│
╵

Expected Behaviour

finnish creating resources

Actual Behaviour

error's out with error :
Error: creating or updating Action Group: (Name "monitordefaultgwa" / Resource Group "rg-example-monitorgwa"): insights.ActionGroupsClient#CreateOrUpdate: Failure responding to request: StatusCode=500 -- Original Error: autorest/azure: Service returned an error. Status=500 Code="Unknown" Message="Unknown service error" Details=[{"code":"InternalError","message":null}]

│ with module.monitor.azurerm_monitor_action_group.this[0],
│ on ../../main.tf line 13, in resource "azurerm_monitor_action_group" "this":
│ 13: resource "azurerm_monitor_action_group" "this" {

if itsm_receiver configuration is removed resources are created properly without any error.

Steps to Reproduce

No response

Important Factoids

No response

References

No response

@farwind farwind added the bug label Aug 26, 2022
@github-actions github-actions bot removed the bug label Aug 26, 2022
@teowa
Copy link
Contributor

teowa commented Aug 31, 2022

@farwind , thanks for taking the time to submit this.

This 500 error should be caused by service API bug, I have submited a issue Azure/azure-rest-api-specs#20488. As a workaround, I have tried set

ticket_configuration =  "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}"

like in this example can resolves this error.

Hope this may help, and please reply if you have further issues.

@github-actions
Copy link

github-actions bot commented Oct 7, 2022

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 Oct 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants