Skip to content

Commit

Permalink
New Resource: azurerm_app_service (#344)
Browse files Browse the repository at this point in the history
* Adding azure app service resource

* adding importer

* adding some tests

* updating tests to use testlocation()

* setting tags

* Resolve App Service Import Acceptance test failure

* removed additional spaces which were inserted by editor

* removing duplicates

* adding documentation

* running fmt

* updating app service resource

* updating app service code

* updating tests

* updating documentation

* setting site config

* adding more tests

* making use of utils module

* WIP

* Reserved requires an App Service Environment

* Fixing the Java apps

* Adding tests for remote debugging

* remote debugging version needs to be computed

* Fixing the tests

* Fixing the jetty tests

* Removing linux support for the moment

* Adding import tests

* Handling setting the appSettings/connectionStrings correctly

* Updating the documentation

* Removing the updates from the create

* Updating the documentation

* Updating the TODO's
  • Loading branch information
tombuildsstuff authored Sep 19, 2017
1 parent 65bb980 commit 5979359
Show file tree
Hide file tree
Showing 7 changed files with 2,386 additions and 8 deletions.
15 changes: 7 additions & 8 deletions azurerm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,11 @@ type ArmClient struct {
sqlServersClient sql.ServersClient

appServicePlansClient web.AppServicePlansClient
appServicesClient web.AppsClient

appInsightsClient appinsights.ComponentsClient

servicePrincipalsClient graphrbac.ServicePrincipalsClient

appsClient web.AppsClient
}

func withRequestLogging() autorest.SendDecorator {
Expand Down Expand Up @@ -642,6 +641,12 @@ func (c *Config) getArmClient() (*ArmClient, error) {
aspc.Sender = sender
client.appServicePlansClient = aspc

ac := web.NewAppsClientWithBaseURI(endpoint, c.SubscriptionID)
setUserAgent(&ac.Client)
ac.Authorizer = auth
ac.Sender = autorest.CreateSender(withRequestLogging())
client.appServicesClient = ac

ai := appinsights.NewComponentsClientWithBaseURI(endpoint, c.SubscriptionID)
setUserAgent(&ai.Client)
ai.Authorizer = auth
Expand All @@ -654,12 +659,6 @@ func (c *Config) getArmClient() (*ArmClient, error) {
spc.Sender = sender
client.servicePrincipalsClient = spc

ac := web.NewAppsClientWithBaseURI(endpoint, c.SubscriptionID)
setUserAgent(&ac.Client)
ac.Authorizer = auth
ac.Sender = sender
client.appsClient = ac

kvc := keyvault.NewVaultsClientWithBaseURI(endpoint, c.SubscriptionID)
setUserAgent(&kvc.Client)
kvc.Authorizer = auth
Expand Down
Loading

0 comments on commit 5979359

Please sign in to comment.