Skip to content

Commit

Permalink
azurerm_application_insights - support for the MobileCenter kind (h…
Browse files Browse the repository at this point in the history
…ashicorp#1878)

```
$ acctests azurerm TestAccAzureRMApplicationInsights_basicMobileCenter
=== RUN   TestAccAzureRMApplicationInsights_basicMobileCenter
--- PASS: TestAccAzureRMApplicationInsights_basicMobileCenter (76.28s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm	76.616s
```

Fixes hashicorp#1815
  • Loading branch information
tombuildsstuff authored Sep 6, 2018
1 parent 92b9b21 commit 0cdc89a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions azurerm/resource_arm_application_insights.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func resourceArmApplicationInsights() *schema.Resource {
"web",
"other",
"java",
"MobileCenter",
"phone",
"store",
"ios",
Expand Down
21 changes: 21 additions & 0 deletions azurerm/resource_arm_application_insights_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,27 @@ func TestAccAzureRMApplicationInsights_basicJava(t *testing.T) {
})
}

func TestAccAzureRMApplicationInsights_basicMobileCenter(t *testing.T) {

ri := acctest.RandInt()
config := testAccAzureRMApplicationInsights_basic(ri, testLocation(), "MobileCenter")

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testCheckAzureRMApplicationInsightsDestroy,
Steps: []resource.TestStep{
{
Config: config,
Check: resource.ComposeTestCheckFunc(
testCheckAzureRMApplicationInsightsExists("azurerm_application_insights.test"),
resource.TestCheckResourceAttr("azurerm_application_insights.test", "application_type", "MobileCenter"),
),
},
},
})
}

func TestAccAzureRMApplicationInsights_basicOther(t *testing.T) {

ri := acctest.RandInt()
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/application_insights.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The following arguments are supported:

* `location` - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

* `application_type` - (Required) Specifies the type of Application Insights to create. Valid values are `Web`, `Java`, `Phone`, `Store`, `iOS` and `Other`.
* `application_type` - (Required) Specifies the type of Application Insights to create. Valid values are `Java`, `iOS`, `MobileCenter`, `Other`, `Phone`, `Store` and `Web`.

* `tags` - (Optional) A mapping of tags to assign to the resource.

Expand Down

0 comments on commit 0cdc89a

Please sign in to comment.