Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Resource azurerm_dev_test_lab_schedule - Fix for issue 2334 #3554

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