Module proximity
This page documents the language specification for the azure package. If you're looking for help working with the inputs, outputs, or functions of azure resources in a Pulumi program, please see the resource documentation for examples and API reference.
Resources
Functions
Others
Resources
Resource PlacementGroup
class PlacementGroup extends CustomResourceManages a proximity placement group for virtual machines, virtual machine scale sets and availability sets.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West US"});
const examplePlacementGroup = new azure.proximity.PlacementGroup("examplePlacementGroup", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
tags: {
environment: "Production",
},
});constructor
new PlacementGroup(name: string, args: PlacementGroupArgs, opts?: pulumi.CustomResourceOptions)Create a PlacementGroup resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PlacementGroupState, opts?: pulumi.CustomResourceOptions): PlacementGroupGet an existing PlacementGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is PlacementGroupReturns true if the given object is an instance of PlacementGroup. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
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 resource exists. Changing this forces a new resource to be created.
property name
public name: pulumi.Output<string>;Specifies the name of the availability set. Changing this forces a new resource to be created.
property resourceGroupName
public resourceGroupName: pulumi.Output<string>;The name of the resource group in which to create the availability set. Changing this forces a new resource to be created.
property tags
public tags: pulumi.Output<{[key: string]: string} | undefined>;A mapping of tags to assign to the resource.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Functions
Function getPlacementGroup
getPlacementGroup(args: GetPlacementGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetPlacementGroupResult>Use this data source to access information about an existing Proximity Placement Group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.proximity.getPlacementGroup({
name: "tf-appsecuritygroup",
resourceGroupName: "my-resource-group",
});
export const proximityPlacementGroupId = example.then(example => example.id);Others
interface GetPlacementGroupArgs
interface GetPlacementGroupArgsA collection of arguments for invoking getPlacementGroup.
property name
name: string;The name of the Proximity Placement Group.
property resourceGroupName
resourceGroupName: string;The name of the resource group in which the Proximity Placement Group exists.
interface GetPlacementGroupResult
interface GetPlacementGroupResultA collection of values returned by getPlacementGroup.
property id
id: string;The provider-assigned unique ID for this managed resource.
property location
location: string;property name
name: string;property resourceGroupName
resourceGroupName: string;property tags
tags: {[key: string]: string};interface PlacementGroupArgs
interface PlacementGroupArgsThe set of arguments for constructing a PlacementGroup resource.
property location
location?: pulumi.Input<string>;Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
property name
name?: pulumi.Input<string>;Specifies the name of the availability set. Changing this forces a new resource to be created.
property resourceGroupName
resourceGroupName: pulumi.Input<string>;The name of the resource group in which to create the availability set. Changing this forces a new resource to be created.
property tags
tags?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;A mapping of tags to assign to the resource.
interface PlacementGroupState
interface PlacementGroupStateInput properties used for looking up and filtering PlacementGroup resources.
property location
location?: pulumi.Input<string>;Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
property name
name?: pulumi.Input<string>;Specifies the name of the availability set. Changing this forces a new resource to be created.
property resourceGroupName
resourceGroupName?: pulumi.Input<string>;The name of the resource group in which to create the availability set. Changing this forces a new resource to be created.
property tags
tags?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;A mapping of tags to assign to the resource.