Skip to content

Commit

Permalink
Merge pull request #2636 from terraform-providers/nw_profile
Browse files Browse the repository at this point in the history
New Resource: Azure Network Profile
  • Loading branch information
tombuildsstuff committed May 14, 2019
2 parents c578120 + 8b17509 commit b820fba
Show file tree
Hide file tree
Showing 6 changed files with 860 additions and 1 deletion.
5 changes: 5 additions & 0 deletions azurerm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ type ArmClient struct {
ifaceClient network.InterfacesClient
loadBalancerClient network.LoadBalancersClient
localNetConnClient network.LocalNetworkGatewaysClient
netProfileClient network.ProfilesClient
packetCapturesClient network.PacketCapturesClient
publicIPClient network.PublicIPAddressesClient
publicIPPrefixClient network.PublicIPPrefixesClient
Expand Down Expand Up @@ -1148,6 +1149,10 @@ func (c *ArmClient) registerNetworkingClients(endpoint, subscriptionId string, a
c.configureClient(&gatewayConnectionsClient.Client, auth)
c.vnetGatewayConnectionsClient = gatewayConnectionsClient

netProfileClient := network.NewProfilesClientWithBaseURI(endpoint, subscriptionId)
c.configureClient(&netProfileClient.Client, auth)
c.netProfileClient = netProfileClient

networksClient := network.NewVirtualNetworksClientWithBaseURI(endpoint, subscriptionId)
c.configureClient(&networksClient.Client, auth)
c.vnetClient = networksClient
Expand Down
3 changes: 2 additions & 1 deletion azurerm/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,13 @@ func Provider() terraform.ResourceProvider {
"azurerm_mysql_virtual_network_rule": resourceArmMySqlVirtualNetworkRule(),
"azurerm_network_connection_monitor": resourceArmNetworkConnectionMonitor(),
"azurerm_network_ddos_protection_plan": resourceArmNetworkDDoSProtectionPlan(),
"azurerm_network_interface": resourceArmNetworkInterface(),
"azurerm_network_interface_application_gateway_backend_address_pool_association": resourceArmNetworkInterfaceApplicationGatewayBackendAddressPoolAssociation(),
"azurerm_network_interface_application_security_group_association": resourceArmNetworkInterfaceApplicationSecurityGroupAssociation(),
"azurerm_network_interface_backend_address_pool_association": resourceArmNetworkInterfaceBackendAddressPoolAssociation(),
"azurerm_network_interface_nat_rule_association": resourceArmNetworkInterfaceNatRuleAssociation(),
"azurerm_network_interface": resourceArmNetworkInterface(),
"azurerm_network_packet_capture": resourceArmNetworkPacketCapture(),
"azurerm_network_profile": resourceArmNetworkProfile(),
"azurerm_network_security_group": resourceArmNetworkSecurityGroup(),
"azurerm_network_security_rule": resourceArmNetworkSecurityRule(),
"azurerm_network_watcher": resourceArmNetworkWatcher(),
Expand Down
Loading

0 comments on commit b820fba

Please sign in to comment.