Skip to content

Commit

Permalink
Merge pull request #137 from terraform-providers/appinsights-registra…
Browse files Browse the repository at this point in the history
…tion

Registering the `Microsoft.Insights` resource provider if it's not registered
  • Loading branch information
tombuildsstuff authored Jun 27, 2017
2 parents 19f94ae + 728511d commit 3779939
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions azurerm/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,19 +249,20 @@ func registerAzureResourceProvidersWithSubscription(providerList []resources.Pro
var err error
providerRegistrationOnce.Do(func() {
providers := map[string]struct{}{
"Microsoft.Compute": struct{}{},
"Microsoft.Cache": struct{}{},
"Microsoft.Cdn": struct{}{},
"Microsoft.Compute": struct{}{},
"Microsoft.ContainerRegistry": struct{}{},
"Microsoft.ContainerService": struct{}{},
"Microsoft.EventHub": struct{}{},
"Microsoft.Insights": struct{}{},
"Microsoft.KeyVault": struct{}{},
"Microsoft.Network": struct{}{},
"Microsoft.Cdn": struct{}{},
"Microsoft.Storage": struct{}{},
"Microsoft.Sql": struct{}{},
"Microsoft.Search": struct{}{},
"Microsoft.Resources": struct{}{},
"Microsoft.Search": struct{}{},
"Microsoft.ServiceBus": struct{}{},
"Microsoft.KeyVault": struct{}{},
"Microsoft.EventHub": struct{}{},
"Microsoft.Sql": struct{}{},
"Microsoft.Storage": struct{}{},
}

// filter out any providers already registered
Expand Down

0 comments on commit 3779939

Please sign in to comment.