We recommend using Azure Native.
azure.nginx.Deployment
Explore with Pulumi AI
Manages a Nginx Deployment.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var examplePublicIp = new Azure.Network.PublicIp("examplePublicIp", new()
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
AllocationMethod = "Static",
Sku = "Standard",
Tags =
{
{ "environment", "Production" },
},
});
var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("exampleVirtualNetwork", new()
{
AddressSpaces = new[]
{
"10.0.0.0/16",
},
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
});
var exampleSubnet = new Azure.Network.Subnet("exampleSubnet", new()
{
ResourceGroupName = exampleResourceGroup.Name,
VirtualNetworkName = exampleVirtualNetwork.Name,
AddressPrefixes = new[]
{
"10.0.2.0/24",
},
Delegations = new[]
{
new Azure.Network.Inputs.SubnetDelegationArgs
{
Name = "delegation",
ServiceDelegation = new Azure.Network.Inputs.SubnetDelegationServiceDelegationArgs
{
Name = "NGINX.NGINXPLUS/nginxDeployments",
Actions = new[]
{
"Microsoft.Network/virtualNetworks/subnets/join/action",
},
},
},
},
});
var exampleDeployment = new Azure.Nginx.Deployment("exampleDeployment", new()
{
ResourceGroupName = exampleResourceGroup.Name,
Sku = "publicpreview_Monthly_gmz7xq9ge3py",
Location = exampleResourceGroup.Location,
ManagedResourceGroup = "example",
DiagnoseSupportEnabled = true,
FrontendPublic = new Azure.Nginx.Inputs.DeploymentFrontendPublicArgs
{
IpAddresses = new[]
{
examplePublicIp.Id,
},
},
NetworkInterfaces = new[]
{
new Azure.Nginx.Inputs.DeploymentNetworkInterfaceArgs
{
SubnetId = exampleSubnet.Id,
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/nginx"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
examplePublicIp, err := network.NewPublicIp(ctx, "examplePublicIp", &network.PublicIpArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
AllocationMethod: pulumi.String("Static"),
Sku: pulumi.String("Standard"),
Tags: pulumi.StringMap{
"environment": pulumi.String("Production"),
},
})
if err != nil {
return err
}
exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "exampleVirtualNetwork", &network.VirtualNetworkArgs{
AddressSpaces: pulumi.StringArray{
pulumi.String("10.0.0.0/16"),
},
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
})
if err != nil {
return err
}
exampleSubnet, err := network.NewSubnet(ctx, "exampleSubnet", &network.SubnetArgs{
ResourceGroupName: exampleResourceGroup.Name,
VirtualNetworkName: exampleVirtualNetwork.Name,
AddressPrefixes: pulumi.StringArray{
pulumi.String("10.0.2.0/24"),
},
Delegations: network.SubnetDelegationArray{
&network.SubnetDelegationArgs{
Name: pulumi.String("delegation"),
ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{
Name: pulumi.String("NGINX.NGINXPLUS/nginxDeployments"),
Actions: pulumi.StringArray{
pulumi.String("Microsoft.Network/virtualNetworks/subnets/join/action"),
},
},
},
},
})
if err != nil {
return err
}
_, err = nginx.NewDeployment(ctx, "exampleDeployment", &nginx.DeploymentArgs{
ResourceGroupName: exampleResourceGroup.Name,
Sku: pulumi.String("publicpreview_Monthly_gmz7xq9ge3py"),
Location: exampleResourceGroup.Location,
ManagedResourceGroup: pulumi.String("example"),
DiagnoseSupportEnabled: pulumi.Bool(true),
FrontendPublic: &nginx.DeploymentFrontendPublicArgs{
IpAddresses: pulumi.StringArray{
examplePublicIp.ID(),
},
},
NetworkInterfaces: nginx.DeploymentNetworkInterfaceArray{
&nginx.DeploymentNetworkInterfaceArgs{
SubnetId: exampleSubnet.ID(),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.PublicIp;
import com.pulumi.azure.network.PublicIpArgs;
import com.pulumi.azure.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.network.inputs.SubnetDelegationArgs;
import com.pulumi.azure.network.inputs.SubnetDelegationServiceDelegationArgs;
import com.pulumi.azure.nginx.Deployment;
import com.pulumi.azure.nginx.DeploymentArgs;
import com.pulumi.azure.nginx.inputs.DeploymentFrontendPublicArgs;
import com.pulumi.azure.nginx.inputs.DeploymentNetworkInterfaceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var examplePublicIp = new PublicIp("examplePublicIp", PublicIpArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.allocationMethod("Static")
.sku("Standard")
.tags(Map.of("environment", "Production"))
.build());
var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
.addressSpaces("10.0.0.0/16")
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.build());
var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.virtualNetworkName(exampleVirtualNetwork.name())
.addressPrefixes("10.0.2.0/24")
.delegations(SubnetDelegationArgs.builder()
.name("delegation")
.serviceDelegation(SubnetDelegationServiceDelegationArgs.builder()
.name("NGINX.NGINXPLUS/nginxDeployments")
.actions("Microsoft.Network/virtualNetworks/subnets/join/action")
.build())
.build())
.build());
var exampleDeployment = new Deployment("exampleDeployment", DeploymentArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.sku("publicpreview_Monthly_gmz7xq9ge3py")
.location(exampleResourceGroup.location())
.managedResourceGroup("example")
.diagnoseSupportEnabled(true)
.frontendPublic(DeploymentFrontendPublicArgs.builder()
.ipAddresses(examplePublicIp.id())
.build())
.networkInterfaces(DeploymentNetworkInterfaceArgs.builder()
.subnetId(exampleSubnet.id())
.build())
.build());
}
}
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_public_ip = azure.network.PublicIp("examplePublicIp",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
allocation_method="Static",
sku="Standard",
tags={
"environment": "Production",
})
example_virtual_network = azure.network.VirtualNetwork("exampleVirtualNetwork",
address_spaces=["10.0.0.0/16"],
location=example_resource_group.location,
resource_group_name=example_resource_group.name)
example_subnet = azure.network.Subnet("exampleSubnet",
resource_group_name=example_resource_group.name,
virtual_network_name=example_virtual_network.name,
address_prefixes=["10.0.2.0/24"],
delegations=[azure.network.SubnetDelegationArgs(
name="delegation",
service_delegation=azure.network.SubnetDelegationServiceDelegationArgs(
name="NGINX.NGINXPLUS/nginxDeployments",
actions=["Microsoft.Network/virtualNetworks/subnets/join/action"],
),
)])
example_deployment = azure.nginx.Deployment("exampleDeployment",
resource_group_name=example_resource_group.name,
sku="publicpreview_Monthly_gmz7xq9ge3py",
location=example_resource_group.location,
managed_resource_group="example",
diagnose_support_enabled=True,
frontend_public=azure.nginx.DeploymentFrontendPublicArgs(
ip_addresses=[example_public_ip.id],
),
network_interfaces=[azure.nginx.DeploymentNetworkInterfaceArgs(
subnet_id=example_subnet.id,
)])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const examplePublicIp = new azure.network.PublicIp("examplePublicIp", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
allocationMethod: "Static",
sku: "Standard",
tags: {
environment: "Production",
},
});
const exampleVirtualNetwork = new azure.network.VirtualNetwork("exampleVirtualNetwork", {
addressSpaces: ["10.0.0.0/16"],
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
});
const exampleSubnet = new azure.network.Subnet("exampleSubnet", {
resourceGroupName: exampleResourceGroup.name,
virtualNetworkName: exampleVirtualNetwork.name,
addressPrefixes: ["10.0.2.0/24"],
delegations: [{
name: "delegation",
serviceDelegation: {
name: "NGINX.NGINXPLUS/nginxDeployments",
actions: ["Microsoft.Network/virtualNetworks/subnets/join/action"],
},
}],
});
const exampleDeployment = new azure.nginx.Deployment("exampleDeployment", {
resourceGroupName: exampleResourceGroup.name,
sku: "publicpreview_Monthly_gmz7xq9ge3py",
location: exampleResourceGroup.location,
managedResourceGroup: "example",
diagnoseSupportEnabled: true,
frontendPublic: {
ipAddresses: [examplePublicIp.id],
},
networkInterfaces: [{
subnetId: exampleSubnet.id,
}],
});
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
properties:
location: West Europe
examplePublicIp:
type: azure:network:PublicIp
properties:
resourceGroupName: ${exampleResourceGroup.name}
location: ${exampleResourceGroup.location}
allocationMethod: Static
sku: Standard
tags:
environment: Production
exampleVirtualNetwork:
type: azure:network:VirtualNetwork
properties:
addressSpaces:
- 10.0.0.0/16
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
exampleSubnet:
type: azure:network:Subnet
properties:
resourceGroupName: ${exampleResourceGroup.name}
virtualNetworkName: ${exampleVirtualNetwork.name}
addressPrefixes:
- 10.0.2.0/24
delegations:
- name: delegation
serviceDelegation:
name: NGINX.NGINXPLUS/nginxDeployments
actions:
- Microsoft.Network/virtualNetworks/subnets/join/action
exampleDeployment:
type: azure:nginx:Deployment
properties:
resourceGroupName: ${exampleResourceGroup.name}
sku: publicpreview_Monthly_gmz7xq9ge3py
location: ${exampleResourceGroup.location}
managedResourceGroup: example
diagnoseSupportEnabled: true
frontendPublic:
ipAddresses:
- ${examplePublicIp.id}
networkInterfaces:
- subnetId: ${exampleSubnet.id}
Create Deployment Resource
new Deployment(name: string, args: DeploymentArgs, opts?: CustomResourceOptions);
@overload
def Deployment(resource_name: str,
opts: Optional[ResourceOptions] = None,
diagnose_support_enabled: Optional[bool] = None,
frontend_privates: Optional[Sequence[DeploymentFrontendPrivateArgs]] = None,
frontend_public: Optional[DeploymentFrontendPublicArgs] = None,
identity: Optional[DeploymentIdentityArgs] = None,
location: Optional[str] = None,
logging_storage_accounts: Optional[Sequence[DeploymentLoggingStorageAccountArgs]] = None,
managed_resource_group: Optional[str] = None,
name: Optional[str] = None,
network_interfaces: Optional[Sequence[DeploymentNetworkInterfaceArgs]] = None,
resource_group_name: Optional[str] = None,
sku: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
@overload
def Deployment(resource_name: str,
args: DeploymentArgs,
opts: Optional[ResourceOptions] = None)
func NewDeployment(ctx *Context, name string, args DeploymentArgs, opts ...ResourceOption) (*Deployment, error)
public Deployment(string name, DeploymentArgs args, CustomResourceOptions? opts = null)
public Deployment(String name, DeploymentArgs args)
public Deployment(String name, DeploymentArgs args, CustomResourceOptions options)
type: azure:nginx:Deployment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DeploymentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DeploymentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DeploymentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DeploymentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DeploymentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Deployment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Deployment resource accepts the following input properties:
- Resource
Group stringName The name of the Resource Group where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- Sku string
Specify the Name of Nginx deployment SKU. The possible value are
publicpreview_Monthly_gmz7xq9ge3py
andstandard_Monthly
.- Diagnose
Support boolEnabled Should the diagnosis support be enabled?
- Frontend
Privates List<DeploymentFrontend Private> One or more
frontend_private
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- Frontend
Public DeploymentFrontend Public A
frontend_public
block as defined below. Changing this forces a new Nginx Deployment to be created.- Identity
Deployment
Identity An
identity
block as defined below.- Location string
The Azure Region where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- Logging
Storage List<DeploymentAccounts Logging Storage Account> One or more
logging_storage_account
blocks as defined below.- Managed
Resource stringGroup Specify the managed resource group to deploy VNet injection related network resources. Changing this forces a new Nginx Deployment to be created.
- Name string
The name which should be used for this Nginx Deployment. Changing this forces a new Nginx Deployment to be created.
- Network
Interfaces List<DeploymentNetwork Interface> One or more
network_interface
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- Dictionary<string, string>
A mapping of tags which should be assigned to the Nginx Deployment.
- Resource
Group stringName The name of the Resource Group where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- Sku string
Specify the Name of Nginx deployment SKU. The possible value are
publicpreview_Monthly_gmz7xq9ge3py
andstandard_Monthly
.- Diagnose
Support boolEnabled Should the diagnosis support be enabled?
- Frontend
Privates []DeploymentFrontend Private Args One or more
frontend_private
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- Frontend
Public DeploymentFrontend Public Args A
frontend_public
block as defined below. Changing this forces a new Nginx Deployment to be created.- Identity
Deployment
Identity Args An
identity
block as defined below.- Location string
The Azure Region where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- Logging
Storage []DeploymentAccounts Logging Storage Account Args One or more
logging_storage_account
blocks as defined below.- Managed
Resource stringGroup Specify the managed resource group to deploy VNet injection related network resources. Changing this forces a new Nginx Deployment to be created.
- Name string
The name which should be used for this Nginx Deployment. Changing this forces a new Nginx Deployment to be created.
- Network
Interfaces []DeploymentNetwork Interface Args One or more
network_interface
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- map[string]string
A mapping of tags which should be assigned to the Nginx Deployment.
- resource
Group StringName The name of the Resource Group where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- sku String
Specify the Name of Nginx deployment SKU. The possible value are
publicpreview_Monthly_gmz7xq9ge3py
andstandard_Monthly
.- diagnose
Support BooleanEnabled Should the diagnosis support be enabled?
- frontend
Privates List<DeploymentFrontend Private> One or more
frontend_private
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- frontend
Public DeploymentFrontend Public A
frontend_public
block as defined below. Changing this forces a new Nginx Deployment to be created.- identity
Deployment
Identity An
identity
block as defined below.- location String
The Azure Region where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- logging
Storage List<DeploymentAccounts Logging Storage Account> One or more
logging_storage_account
blocks as defined below.- managed
Resource StringGroup Specify the managed resource group to deploy VNet injection related network resources. Changing this forces a new Nginx Deployment to be created.
- name String
The name which should be used for this Nginx Deployment. Changing this forces a new Nginx Deployment to be created.
- network
Interfaces List<DeploymentNetwork Interface> One or more
network_interface
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- Map<String,String>
A mapping of tags which should be assigned to the Nginx Deployment.
- resource
Group stringName The name of the Resource Group where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- sku string
Specify the Name of Nginx deployment SKU. The possible value are
publicpreview_Monthly_gmz7xq9ge3py
andstandard_Monthly
.- diagnose
Support booleanEnabled Should the diagnosis support be enabled?
- frontend
Privates DeploymentFrontend Private[] One or more
frontend_private
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- frontend
Public DeploymentFrontend Public A
frontend_public
block as defined below. Changing this forces a new Nginx Deployment to be created.- identity
Deployment
Identity An
identity
block as defined below.- location string
The Azure Region where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- logging
Storage DeploymentAccounts Logging Storage Account[] One or more
logging_storage_account
blocks as defined below.- managed
Resource stringGroup Specify the managed resource group to deploy VNet injection related network resources. Changing this forces a new Nginx Deployment to be created.
- name string
The name which should be used for this Nginx Deployment. Changing this forces a new Nginx Deployment to be created.
- network
Interfaces DeploymentNetwork Interface[] One or more
network_interface
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- {[key: string]: string}
A mapping of tags which should be assigned to the Nginx Deployment.
- resource_
group_ strname The name of the Resource Group where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- sku str
Specify the Name of Nginx deployment SKU. The possible value are
publicpreview_Monthly_gmz7xq9ge3py
andstandard_Monthly
.- diagnose_
support_ boolenabled Should the diagnosis support be enabled?
- frontend_
privates Sequence[DeploymentFrontend Private Args] One or more
frontend_private
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- frontend_
public DeploymentFrontend Public Args A
frontend_public
block as defined below. Changing this forces a new Nginx Deployment to be created.- identity
Deployment
Identity Args An
identity
block as defined below.- location str
The Azure Region where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- logging_
storage_ Sequence[Deploymentaccounts Logging Storage Account Args] One or more
logging_storage_account
blocks as defined below.- managed_
resource_ strgroup Specify the managed resource group to deploy VNet injection related network resources. Changing this forces a new Nginx Deployment to be created.
- name str
The name which should be used for this Nginx Deployment. Changing this forces a new Nginx Deployment to be created.
- network_
interfaces Sequence[DeploymentNetwork Interface Args] One or more
network_interface
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- Mapping[str, str]
A mapping of tags which should be assigned to the Nginx Deployment.
- resource
Group StringName The name of the Resource Group where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- sku String
Specify the Name of Nginx deployment SKU. The possible value are
publicpreview_Monthly_gmz7xq9ge3py
andstandard_Monthly
.- diagnose
Support BooleanEnabled Should the diagnosis support be enabled?
- frontend
Privates List<Property Map> One or more
frontend_private
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- frontend
Public Property Map A
frontend_public
block as defined below. Changing this forces a new Nginx Deployment to be created.- identity Property Map
An
identity
block as defined below.- location String
The Azure Region where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- logging
Storage List<Property Map>Accounts One or more
logging_storage_account
blocks as defined below.- managed
Resource StringGroup Specify the managed resource group to deploy VNet injection related network resources. Changing this forces a new Nginx Deployment to be created.
- name String
The name which should be used for this Nginx Deployment. Changing this forces a new Nginx Deployment to be created.
- network
Interfaces List<Property Map> One or more
network_interface
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- Map<String>
A mapping of tags which should be assigned to the Nginx Deployment.
Outputs
All input properties are implicitly available as output properties. Additionally, the Deployment resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Ip
Address string Specify the IP Address of this private IP.
- Nginx
Version string The version of deployed nginx.
- Id string
The provider-assigned unique ID for this managed resource.
- Ip
Address string Specify the IP Address of this private IP.
- Nginx
Version string The version of deployed nginx.
- id String
The provider-assigned unique ID for this managed resource.
- ip
Address String Specify the IP Address of this private IP.
- nginx
Version String The version of deployed nginx.
- id string
The provider-assigned unique ID for this managed resource.
- ip
Address string Specify the IP Address of this private IP.
- nginx
Version string The version of deployed nginx.
- id str
The provider-assigned unique ID for this managed resource.
- ip_
address str Specify the IP Address of this private IP.
- nginx_
version str The version of deployed nginx.
- id String
The provider-assigned unique ID for this managed resource.
- ip
Address String Specify the IP Address of this private IP.
- nginx
Version String The version of deployed nginx.
Look up Existing Deployment Resource
Get an existing Deployment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DeploymentState, opts?: CustomResourceOptions): Deployment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
diagnose_support_enabled: Optional[bool] = None,
frontend_privates: Optional[Sequence[DeploymentFrontendPrivateArgs]] = None,
frontend_public: Optional[DeploymentFrontendPublicArgs] = None,
identity: Optional[DeploymentIdentityArgs] = None,
ip_address: Optional[str] = None,
location: Optional[str] = None,
logging_storage_accounts: Optional[Sequence[DeploymentLoggingStorageAccountArgs]] = None,
managed_resource_group: Optional[str] = None,
name: Optional[str] = None,
network_interfaces: Optional[Sequence[DeploymentNetworkInterfaceArgs]] = None,
nginx_version: Optional[str] = None,
resource_group_name: Optional[str] = None,
sku: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None) -> Deployment
func GetDeployment(ctx *Context, name string, id IDInput, state *DeploymentState, opts ...ResourceOption) (*Deployment, error)
public static Deployment Get(string name, Input<string> id, DeploymentState? state, CustomResourceOptions? opts = null)
public static Deployment get(String name, Output<String> id, DeploymentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Diagnose
Support boolEnabled Should the diagnosis support be enabled?
- Frontend
Privates List<DeploymentFrontend Private> One or more
frontend_private
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- Frontend
Public DeploymentFrontend Public A
frontend_public
block as defined below. Changing this forces a new Nginx Deployment to be created.- Identity
Deployment
Identity An
identity
block as defined below.- Ip
Address string Specify the IP Address of this private IP.
- Location string
The Azure Region where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- Logging
Storage List<DeploymentAccounts Logging Storage Account> One or more
logging_storage_account
blocks as defined below.- Managed
Resource stringGroup Specify the managed resource group to deploy VNet injection related network resources. Changing this forces a new Nginx Deployment to be created.
- Name string
The name which should be used for this Nginx Deployment. Changing this forces a new Nginx Deployment to be created.
- Network
Interfaces List<DeploymentNetwork Interface> One or more
network_interface
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- Nginx
Version string The version of deployed nginx.
- Resource
Group stringName The name of the Resource Group where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- Sku string
Specify the Name of Nginx deployment SKU. The possible value are
publicpreview_Monthly_gmz7xq9ge3py
andstandard_Monthly
.- Dictionary<string, string>
A mapping of tags which should be assigned to the Nginx Deployment.
- Diagnose
Support boolEnabled Should the diagnosis support be enabled?
- Frontend
Privates []DeploymentFrontend Private Args One or more
frontend_private
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- Frontend
Public DeploymentFrontend Public Args A
frontend_public
block as defined below. Changing this forces a new Nginx Deployment to be created.- Identity
Deployment
Identity Args An
identity
block as defined below.- Ip
Address string Specify the IP Address of this private IP.
- Location string
The Azure Region where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- Logging
Storage []DeploymentAccounts Logging Storage Account Args One or more
logging_storage_account
blocks as defined below.- Managed
Resource stringGroup Specify the managed resource group to deploy VNet injection related network resources. Changing this forces a new Nginx Deployment to be created.
- Name string
The name which should be used for this Nginx Deployment. Changing this forces a new Nginx Deployment to be created.
- Network
Interfaces []DeploymentNetwork Interface Args One or more
network_interface
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- Nginx
Version string The version of deployed nginx.
- Resource
Group stringName The name of the Resource Group where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- Sku string
Specify the Name of Nginx deployment SKU. The possible value are
publicpreview_Monthly_gmz7xq9ge3py
andstandard_Monthly
.- map[string]string
A mapping of tags which should be assigned to the Nginx Deployment.
- diagnose
Support BooleanEnabled Should the diagnosis support be enabled?
- frontend
Privates List<DeploymentFrontend Private> One or more
frontend_private
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- frontend
Public DeploymentFrontend Public A
frontend_public
block as defined below. Changing this forces a new Nginx Deployment to be created.- identity
Deployment
Identity An
identity
block as defined below.- ip
Address String Specify the IP Address of this private IP.
- location String
The Azure Region where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- logging
Storage List<DeploymentAccounts Logging Storage Account> One or more
logging_storage_account
blocks as defined below.- managed
Resource StringGroup Specify the managed resource group to deploy VNet injection related network resources. Changing this forces a new Nginx Deployment to be created.
- name String
The name which should be used for this Nginx Deployment. Changing this forces a new Nginx Deployment to be created.
- network
Interfaces List<DeploymentNetwork Interface> One or more
network_interface
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- nginx
Version String The version of deployed nginx.
- resource
Group StringName The name of the Resource Group where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- sku String
Specify the Name of Nginx deployment SKU. The possible value are
publicpreview_Monthly_gmz7xq9ge3py
andstandard_Monthly
.- Map<String,String>
A mapping of tags which should be assigned to the Nginx Deployment.
- diagnose
Support booleanEnabled Should the diagnosis support be enabled?
- frontend
Privates DeploymentFrontend Private[] One or more
frontend_private
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- frontend
Public DeploymentFrontend Public A
frontend_public
block as defined below. Changing this forces a new Nginx Deployment to be created.- identity
Deployment
Identity An
identity
block as defined below.- ip
Address string Specify the IP Address of this private IP.
- location string
The Azure Region where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- logging
Storage DeploymentAccounts Logging Storage Account[] One or more
logging_storage_account
blocks as defined below.- managed
Resource stringGroup Specify the managed resource group to deploy VNet injection related network resources. Changing this forces a new Nginx Deployment to be created.
- name string
The name which should be used for this Nginx Deployment. Changing this forces a new Nginx Deployment to be created.
- network
Interfaces DeploymentNetwork Interface[] One or more
network_interface
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- nginx
Version string The version of deployed nginx.
- resource
Group stringName The name of the Resource Group where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- sku string
Specify the Name of Nginx deployment SKU. The possible value are
publicpreview_Monthly_gmz7xq9ge3py
andstandard_Monthly
.- {[key: string]: string}
A mapping of tags which should be assigned to the Nginx Deployment.
- diagnose_
support_ boolenabled Should the diagnosis support be enabled?
- frontend_
privates Sequence[DeploymentFrontend Private Args] One or more
frontend_private
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- frontend_
public DeploymentFrontend Public Args A
frontend_public
block as defined below. Changing this forces a new Nginx Deployment to be created.- identity
Deployment
Identity Args An
identity
block as defined below.- ip_
address str Specify the IP Address of this private IP.
- location str
The Azure Region where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- logging_
storage_ Sequence[Deploymentaccounts Logging Storage Account Args] One or more
logging_storage_account
blocks as defined below.- managed_
resource_ strgroup Specify the managed resource group to deploy VNet injection related network resources. Changing this forces a new Nginx Deployment to be created.
- name str
The name which should be used for this Nginx Deployment. Changing this forces a new Nginx Deployment to be created.
- network_
interfaces Sequence[DeploymentNetwork Interface Args] One or more
network_interface
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- nginx_
version str The version of deployed nginx.
- resource_
group_ strname The name of the Resource Group where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- sku str
Specify the Name of Nginx deployment SKU. The possible value are
publicpreview_Monthly_gmz7xq9ge3py
andstandard_Monthly
.- Mapping[str, str]
A mapping of tags which should be assigned to the Nginx Deployment.
- diagnose
Support BooleanEnabled Should the diagnosis support be enabled?
- frontend
Privates List<Property Map> One or more
frontend_private
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- frontend
Public Property Map A
frontend_public
block as defined below. Changing this forces a new Nginx Deployment to be created.- identity Property Map
An
identity
block as defined below.- ip
Address String Specify the IP Address of this private IP.
- location String
The Azure Region where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- logging
Storage List<Property Map>Accounts One or more
logging_storage_account
blocks as defined below.- managed
Resource StringGroup Specify the managed resource group to deploy VNet injection related network resources. Changing this forces a new Nginx Deployment to be created.
- name String
The name which should be used for this Nginx Deployment. Changing this forces a new Nginx Deployment to be created.
- network
Interfaces List<Property Map> One or more
network_interface
blocks as defined below. Changing this forces a new Nginx Deployment to be created.- nginx
Version String The version of deployed nginx.
- resource
Group StringName The name of the Resource Group where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.
- sku String
Specify the Name of Nginx deployment SKU. The possible value are
publicpreview_Monthly_gmz7xq9ge3py
andstandard_Monthly
.- Map<String>
A mapping of tags which should be assigned to the Nginx Deployment.
Supporting Types
DeploymentFrontendPrivate, DeploymentFrontendPrivateArgs
- Allocation
Method string Specify the methos of allocating the private IP. Possible values are
Static
andDynamic
.- Ip
Address string Specify the IP Address of this private IP.
- Subnet
Id string Specify the SubNet Resource ID to this Nginx Deployment.
- Allocation
Method string Specify the methos of allocating the private IP. Possible values are
Static
andDynamic
.- Ip
Address string Specify the IP Address of this private IP.
- Subnet
Id string Specify the SubNet Resource ID to this Nginx Deployment.
- allocation
Method String Specify the methos of allocating the private IP. Possible values are
Static
andDynamic
.- ip
Address String Specify the IP Address of this private IP.
- subnet
Id String Specify the SubNet Resource ID to this Nginx Deployment.
- allocation
Method string Specify the methos of allocating the private IP. Possible values are
Static
andDynamic
.- ip
Address string Specify the IP Address of this private IP.
- subnet
Id string Specify the SubNet Resource ID to this Nginx Deployment.
- allocation_
method str Specify the methos of allocating the private IP. Possible values are
Static
andDynamic
.- ip_
address str Specify the IP Address of this private IP.
- subnet_
id str Specify the SubNet Resource ID to this Nginx Deployment.
- allocation
Method String Specify the methos of allocating the private IP. Possible values are
Static
andDynamic
.- ip
Address String Specify the IP Address of this private IP.
- subnet
Id String Specify the SubNet Resource ID to this Nginx Deployment.
DeploymentFrontendPublic, DeploymentFrontendPublicArgs
- Ip
Addresses List<string> Specifies a list of Public IP Resouce ID to this Nginx Deployment.
- Ip
Addresses []string Specifies a list of Public IP Resouce ID to this Nginx Deployment.
- ip
Addresses List<String> Specifies a list of Public IP Resouce ID to this Nginx Deployment.
- ip
Addresses string[] Specifies a list of Public IP Resouce ID to this Nginx Deployment.
- ip_
addresses Sequence[str] Specifies a list of Public IP Resouce ID to this Nginx Deployment.
- ip
Addresses List<String> Specifies a list of Public IP Resouce ID to this Nginx Deployment.
DeploymentIdentity, DeploymentIdentityArgs
- Type string
Specifies the identity type of the Nginx Deployment. Possible values is
UserAssigned
where you can specify the Service Principal IDs in theidentity_ids
field.- Identity
Ids List<string> Specifies a list of user managed identity ids to be assigned. Required if
type
isUserAssigned
.- Principal
Id string - Tenant
Id string
- Type string
Specifies the identity type of the Nginx Deployment. Possible values is
UserAssigned
where you can specify the Service Principal IDs in theidentity_ids
field.- Identity
Ids []string Specifies a list of user managed identity ids to be assigned. Required if
type
isUserAssigned
.- Principal
Id string - Tenant
Id string
- type String
Specifies the identity type of the Nginx Deployment. Possible values is
UserAssigned
where you can specify the Service Principal IDs in theidentity_ids
field.- identity
Ids List<String> Specifies a list of user managed identity ids to be assigned. Required if
type
isUserAssigned
.- principal
Id String - tenant
Id String
- type string
Specifies the identity type of the Nginx Deployment. Possible values is
UserAssigned
where you can specify the Service Principal IDs in theidentity_ids
field.- identity
Ids string[] Specifies a list of user managed identity ids to be assigned. Required if
type
isUserAssigned
.- principal
Id string - tenant
Id string
- type str
Specifies the identity type of the Nginx Deployment. Possible values is
UserAssigned
where you can specify the Service Principal IDs in theidentity_ids
field.- identity_
ids Sequence[str] Specifies a list of user managed identity ids to be assigned. Required if
type
isUserAssigned
.- principal_
id str - tenant_
id str
- type String
Specifies the identity type of the Nginx Deployment. Possible values is
UserAssigned
where you can specify the Service Principal IDs in theidentity_ids
field.- identity
Ids List<String> Specifies a list of user managed identity ids to be assigned. Required if
type
isUserAssigned
.- principal
Id String - tenant
Id String
DeploymentLoggingStorageAccount, DeploymentLoggingStorageAccountArgs
- Container
Name string Specify the container name of Stoage Account for logging.
- Name string
The account name of the StorageAccount for Nginx Logging.
- Container
Name string Specify the container name of Stoage Account for logging.
- Name string
The account name of the StorageAccount for Nginx Logging.
- container
Name String Specify the container name of Stoage Account for logging.
- name String
The account name of the StorageAccount for Nginx Logging.
- container
Name string Specify the container name of Stoage Account for logging.
- name string
The account name of the StorageAccount for Nginx Logging.
- container_
name str Specify the container name of Stoage Account for logging.
- name str
The account name of the StorageAccount for Nginx Logging.
- container
Name String Specify the container name of Stoage Account for logging.
- name String
The account name of the StorageAccount for Nginx Logging.
DeploymentNetworkInterface, DeploymentNetworkInterfaceArgs
- Subnet
Id string Specify The SubNet Resource ID to this Nginx Deployment.
- Subnet
Id string Specify The SubNet Resource ID to this Nginx Deployment.
- subnet
Id String Specify The SubNet Resource ID to this Nginx Deployment.
- subnet
Id string Specify The SubNet Resource ID to this Nginx Deployment.
- subnet_
id str Specify The SubNet Resource ID to this Nginx Deployment.
- subnet
Id String Specify The SubNet Resource ID to this Nginx Deployment.
Import
Nginx Deployments can be imported using the resource id
, e.g.
$ pulumi import azure:nginx/deployment:Deployment example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Nginx.NginxPlus/nginxDeployments/dep1
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.