Skip to content

Commit

Permalink
New Resource azurerm_dev_test_lab_schedule - Fix for issue 2334 (#3554)
Browse files Browse the repository at this point in the history
This pull request is to fix issue #2334, It has changes to add new resource provider **azurerm_dev_test_lab_schedule**.

**Additional Points**
* Resource provider has been created based on [microsoft.devtestlab/2016-05-15/schedules](https://docs.microsoft.com/en-us/azure/templates/microsoft.devtestlab/2016-05-15/schedules)

(fixes #2334)
  • Loading branch information
maniSbindra authored and katbyte committed Aug 1, 2019
1 parent ff3773e commit a342486
Show file tree
Hide file tree
Showing 5 changed files with 950 additions and 0 deletions.
4 changes: 4 additions & 0 deletions azurerm/internal/services/devtestlabs/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (

type Client struct {
LabsClient dtl.LabsClient
LabSchedulesClient dtl.SchedulesClient
PoliciesClient dtl.PoliciesClient
VirtualMachinesClient dtl.VirtualMachinesClient
VirtualNetworksClient dtl.VirtualNetworksClient
Expand All @@ -27,5 +28,8 @@ func BuildClient(o *common.ClientOptions) *Client {
c.VirtualNetworksClient = dtl.NewVirtualNetworksClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&c.VirtualNetworksClient.Client, o.ResourceManagerAuthorizer)

c.LabSchedulesClient = dtl.NewSchedulesClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&c.LabSchedulesClient.Client, o.ResourceManagerAuthorizer)

return &c
}
1 change: 1 addition & 0 deletions azurerm/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ func Provider() terraform.ResourceProvider {
"azurerm_databricks_workspace": resourceArmDatabricksWorkspace(),
"azurerm_ddos_protection_plan": resourceArmDDoSProtectionPlan(),
"azurerm_dev_test_lab": resourceArmDevTestLab(),
"azurerm_dev_test_schedule": resourceArmDevTestLabSchedules(),
"azurerm_dev_test_linux_virtual_machine": resourceArmDevTestLinuxVirtualMachine(),
"azurerm_dev_test_policy": resourceArmDevTestPolicy(),
"azurerm_dev_test_virtual_network": resourceArmDevTestVirtualNetwork(),
Expand Down
Loading

0 comments on commit a342486

Please sign in to comment.