Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion builtin/providers/azurerm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ type ArmClient struct {
routeTablesClient network.RouteTablesClient
routesClient network.RoutesClient

cdnProfilesClient cdn.ProfilesClient
cdnProfilesClient cdn.ProfilesClient
cdnEndpointsClient cdn.EndpointsClient

providers resources.ProvidersClient
resourceGroupClient resources.GroupsClient
Expand Down Expand Up @@ -255,5 +256,11 @@ func (c *Config) getArmClient() (*ArmClient, error) {
cpc.Sender = autorest.CreateSender(withRequestLogging())
client.cdnProfilesClient = cpc

cec := cdn.NewEndpointsClient(c.SubscriptionID)
setUserAgent(&cec.Client)
cec.Authorizer = spt
cec.Sender = autorest.CreateSender(withRequestLogging())
client.cdnEndpointsClient = cec

return &client, nil
}
1 change: 1 addition & 0 deletions builtin/providers/azurerm/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func Provider() terraform.ResourceProvider {
"azurerm_route_table": resourceArmRouteTable(),
"azurerm_route": resourceArmRoute(),
"azurerm_cdn_profile": resourceArmCdnProfile(),
"azurerm_cdn_endpoint": resourceArmCdnEndpoint(),
},
ConfigureFunc: providerConfigure,
}
Expand Down
Loading