Skip to content

Commit

Permalink
Adds managed disk support
Browse files Browse the repository at this point in the history
* updated virtual machine documentation
  • Loading branch information
Martin Bjørgan authored and petems committed May 15, 2019
1 parent cdcc571 commit c397855
Show file tree
Hide file tree
Showing 3 changed files with 352 additions and 138 deletions.
5 changes: 5 additions & 0 deletions azurestack/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type ArmClient struct {

// Compute
availSetClient compute.AvailabilitySetsClient
diskClient compute.DisksClient
vmExtensionClient compute.VirtualMachineExtensionsClient

// DNS
Expand Down Expand Up @@ -197,6 +198,10 @@ func (c *ArmClient) registerComputeClients(endpoint, subscriptionId string, auth
c.configureClient(&availabilitySetsClient.Client, auth)
c.availSetClient = availabilitySetsClient

diskClient := compute.NewDisksClientWithBaseURI(endpoint, subscriptionId)
c.configureClient(&diskClient.Client, auth)
c.diskClient = diskClient

extensionsClient := compute.NewVirtualMachineExtensionsClientWithBaseURI(endpoint, subscriptionId)
c.configureClient(&extensionsClient.Client, auth)
c.vmExtensionClient = extensionsClient
Expand Down
Loading

0 comments on commit c397855

Please sign in to comment.