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

API returned extra features I didn't specify in tfconfig for azurerm_signalr_service #7677

Closed
neil-yechenwei opened this issue Jul 10, 2020 · 2 comments · Fixed by #8541
Closed

Comments

@neil-yechenwei
Copy link
Contributor

neil-yechenwei commented Jul 10, 2020

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 (and AzureRM Provider) Version

Terraform v0.12.24

  • provider.azurerm (2.18.0)

Affected Resource(s)

  • azurerm_signalr_service

Terraform Configuration Files

provider "azurerm" {
  features {}
}

resource "azurerm_resource_group" "test" {
  name     = "acctestRG-ss-test01"
  location = "eastus2"
}

resource "azurerm_signalr_service" "test" {
  name                = "acctestSignalR-test01"
  location            = azurerm_resource_group.test.location
  resource_group_name = azurerm_resource_group.test.name

  sku {
    name     = "Free_F1"
    capacity = 1
  }

  features {
    flag  = "ServiceMode"
    value = "Serverless"
  }
}

Panic Output

=== RUN   TestAccAzureRMSignalRService_serviceMode
=== PAUSE TestAccAzureRMSignalRService_serviceMode
=== CONT  TestAccAzureRMSignalRService_serviceMode
    TestAccAzureRMSignalRService_serviceMode: testing.go:684: Step 0 error: After applying this step, the plan was not empty:
        
        DIFF:
        
        UPDATE: azurerm_signalr_service.test
          cors.#:                      "1" => "1"
          cors.0.allowed_origins.#:    "1" => "1"
          cors.0.allowed_origins.0:    "*" => "*"
          features.#:                  "3" => "1"
          features.0.flag:             "ServiceMode" => "ServiceMode"
          features.0.value:            "Serverless" => "Serverless"
          features.1.flag:             "EnableConnectivityLogs" => ""
          features.1.value:            "False" => ""
          features.2.flag:             "EnableMessagingLogs" => ""
          features.2.value:            "False" => ""
          hostname:                    "xxx.service.signalr.net" => "xxx.service.signalr.net"
          id:                          "/subscriptions/xx-xx-xx-xx/resourceGroups/acctestRG-200710132141064566/providers/Microsoft.SignalRService/SignalR/xxx" => "/subscriptions/xx-xx-xx-xx/resourceGroups/acctestRG-200710132141064566/providers/Microsoft.SignalRService/SignalR/xxx"
          ip_address:                  "xxx" => "xxx"
          location:                    "eastus2" => "eastus2"
          name:                        "xxx" => "xxx"
          primary_access_key:          "xxx" => "xxx"
          primary_connection_string:   "Endpoint=https://xxx.service.signalr.net;AccessKey=xxx;Version=1.0;" => "Endpoint=https://xxx.service.signalr.net;AccessKey=xxxx;Version=1.0;"
          public_port:                 "443" => "443"
          resource_group_name:         "acctestRG-200710132141064566" => "acctestRG-200710132141064566"
          secondary_access_key:        "xxx" => "xxx"
          secondary_connection_string: "Endpoint=https://xxx.service.signalr.net;AccessKey=xxxx;Version=1.0;" => "Endpoint=https://xxx.service.signalr.net;AccessKey=xxxx;Version=1.0;"
          server_port:                 "443" => "443"
          sku.#:                       "1" => "1"
          sku.0.capacity:              "1" => "1"
          sku.0.name:                  "Free_F1" => "Free_F1"
        
        
        
        STATE:
        
        azurerm_resource_group.test:
          ID = /subscriptions/xx-xx-xx-xx/resourceGroups/acctestRG-200710132141064566
          provider = provider.azurerm
          location = eastus2
          name = acctestRG-200710132141064566
        azurerm_signalr_service.test:
          ID = /subscriptions/xx-xx-xx-xx/resourceGroups/acctestRG-200710132141064566/providers/Microsoft.SignalRService/SignalR/xxx
          provider = provider.azurerm
          cors.# = 1
          cors.0.allowed_origins.# = 1
          cors.0.allowed_origins.0 = *
          features.# = 3
          features.0.flag = ServiceMode
          features.0.value = Serverless
          features.1.flag = EnableConnectivityLogs
          features.1.value = False
          features.2.flag = EnableMessagingLogs
          features.2.value = False
          hostname = xxx.service.signalr.net
          ip_address = xxxx
          location = eastus2
          name = xxx
          primary_access_key = xxxx
          primary_connection_string = Endpoint=https://xxxx.service.signalr.net;AccessKey=xxx;Version=1.0;
          public_port = 443
          resource_group_name = acctestRG-200710132141064566
          secondary_access_key = xxxx
          secondary_connection_string = Endpoint=https://xxxx.service.signalr.net;AccessKey=xxx;Version=1.0;
          server_port = 443
          sku.# = 1
          sku.0.capacity = 1
          sku.0.name = Free_F1
        
          Dependencies:
            azurerm_resource_group.test
--- FAIL: TestAccAzureRMSignalRService_serviceMode (568.47s)
FAIL

Debugger finished with exit code 0

Expected Behavior

It should only returned one feature I specified in tfconfig.

Actual Behavior

API returned three features which includes I didn't specified in tfconfig.

Steps to Reproduce

  1. terraform apply

Important Factoids

@neil-yechenwei

This comment has been minimized.

@ghost
Copy link

ghost commented Oct 23, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Oct 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants