This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getVirtualMachineScaleSet.go
58 lines (53 loc) · 2.67 KB
/
getVirtualMachineScaleSet.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20170330
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupVirtualMachineScaleSet(ctx *pulumi.Context, args *LookupVirtualMachineScaleSetArgs, opts ...pulumi.InvokeOption) (*LookupVirtualMachineScaleSetResult, error) {
var rv LookupVirtualMachineScaleSetResult
err := ctx.Invoke("azure-nextgen:compute/v20170330:getVirtualMachineScaleSet", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupVirtualMachineScaleSetArgs struct {
// The name of the resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The name of the VM scale set.
VmScaleSetName string `pulumi:"vmScaleSetName"`
}
// Describes a Virtual Machine Scale Set.
type LookupVirtualMachineScaleSetResult struct {
// Resource Id
Id string `pulumi:"id"`
// The identity of the virtual machine scale set, if configured.
Identity *VirtualMachineScaleSetIdentityResponse `pulumi:"identity"`
// Resource location
Location string `pulumi:"location"`
// Resource name
Name string `pulumi:"name"`
// Specifies whether the Virtual Machine Scale Set should be overprovisioned.
Overprovision *bool `pulumi:"overprovision"`
// Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**.
Plan *PlanResponse `pulumi:"plan"`
// The provisioning state, which only appears in the response.
ProvisioningState string `pulumi:"provisioningState"`
// When true this limits the scale set to a single placement group, of max size 100 virtual machines.
SinglePlacementGroup *bool `pulumi:"singlePlacementGroup"`
// The virtual machine scale set sku.
Sku *SkuResponse `pulumi:"sku"`
// Resource tags
Tags map[string]string `pulumi:"tags"`
// Resource type
Type string `pulumi:"type"`
// Specifies the ID which uniquely identifies a Virtual Machine Scale Set.
UniqueId string `pulumi:"uniqueId"`
// The upgrade policy.
UpgradePolicy *UpgradePolicyResponse `pulumi:"upgradePolicy"`
// The virtual machine profile.
VirtualMachineProfile *VirtualMachineScaleSetVMProfileResponse `pulumi:"virtualMachineProfile"`
// The virtual machine scale set zones. NOTE: Availability zones can only be set when you create the scale set.
Zones []string `pulumi:"zones"`
}