Fork me on GitHub

Module autoscale

@pulumi/azure > autoscale

Index

autoscale/setting.ts

class Setting

Manages an AutoScale Setting which can be applied to Virtual Machine Scale Sets, App Services and other scalable resources.

constructor

new Setting(name: string, args: SettingArgs, opts?: pulumi.CustomResourceOptions)

Create a Setting resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SettingState): Setting

Get an existing Setting resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property enabled

public enabled: pulumi.Output<boolean | undefined>;

Specifies whether automatic scaling is enabled for the target resource. Defaults to true.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property location

public location: pulumi.Output<string>;

Specifies the supported Azure location where the AutoScale Setting should exist. Changing this forces a new resource to be created.

property name

public name: pulumi.Output<string>;

The name of the AutoScale Setting. Changing this forces a new resource to be created.

property notification

public notification: pulumi.Output<{ ... } | undefined>;

Specifies a notification block as defined below.

property profiles

public profiles: pulumi.Output<{ ... }[]>;

Specifies one or more (up to 20) profile blocks as defined below.

property resourceGroupName

public resourceGroupName: pulumi.Output<string>;

The name of the Resource Group in the AutoScale Setting should be created. Changing this forces a new resource to be created.

property tags

public tags: pulumi.Output<{ ... }>;

A mapping of tags to assign to the resource.

property targetResourceId

public targetResourceId: pulumi.Output<string>;

Specifies the resource ID of the resource that the autoscale setting should be added to.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

interface SettingArgs

The set of arguments for constructing a Setting resource.

property enabled

enabled?: pulumi.Input<boolean>;

Specifies whether automatic scaling is enabled for the target resource. Defaults to true.

property location

location: pulumi.Input<string>;

Specifies the supported Azure location where the AutoScale Setting should exist. Changing this forces a new resource to be created.

property name

name?: pulumi.Input<string>;

The name of the AutoScale Setting. Changing this forces a new resource to be created.

property notification

notification?: pulumi.Input<{ ... }>;

Specifies a notification block as defined below.

property profiles

profiles: pulumi.Input<pulumi.Input<{ ... }>[]>;

Specifies one or more (up to 20) profile blocks as defined below.

property resourceGroupName

resourceGroupName: pulumi.Input<string>;

The name of the Resource Group in the AutoScale Setting should be created. Changing this forces a new resource to be created.

property tags

tags?: pulumi.Input<{ ... }>;

A mapping of tags to assign to the resource.

property targetResourceId

targetResourceId: pulumi.Input<string>;

Specifies the resource ID of the resource that the autoscale setting should be added to.

interface SettingState

Input properties used for looking up and filtering Setting resources.

property enabled

enabled?: pulumi.Input<boolean>;

Specifies whether automatic scaling is enabled for the target resource. Defaults to true.

property location

location?: pulumi.Input<string>;

Specifies the supported Azure location where the AutoScale Setting should exist. Changing this forces a new resource to be created.

property name

name?: pulumi.Input<string>;

The name of the AutoScale Setting. Changing this forces a new resource to be created.

property notification

notification?: pulumi.Input<{ ... }>;

Specifies a notification block as defined below.

property profiles

profiles?: pulumi.Input<pulumi.Input<{ ... }>[]>;

Specifies one or more (up to 20) profile blocks as defined below.

property resourceGroupName

resourceGroupName?: pulumi.Input<string>;

The name of the Resource Group in the AutoScale Setting should be created. Changing this forces a new resource to be created.

property tags

tags?: pulumi.Input<{ ... }>;

A mapping of tags to assign to the resource.

property targetResourceId

targetResourceId?: pulumi.Input<string>;

Specifies the resource ID of the resource that the autoscale setting should be added to.