1. Packages
  2. Azure Classic
  3. API Docs
  4. nginx
  5. Deployment

We recommend using Azure Native.

Azure Classic v5.49.0 published on Tuesday, Aug 29, 2023 by Pulumi

azure.nginx.Deployment

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.49.0 published on Tuesday, Aug 29, 2023 by Pulumi

    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:

    ResourceGroupName string

    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 and standard_Monthly.

    DiagnoseSupportEnabled bool

    Should the diagnosis support be enabled?

    FrontendPrivates List<DeploymentFrontendPrivate>

    One or more frontend_private blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    FrontendPublic DeploymentFrontendPublic

    A frontend_public block as defined below. Changing this forces a new Nginx Deployment to be created.

    Identity DeploymentIdentity

    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.

    LoggingStorageAccounts List<DeploymentLoggingStorageAccount>

    One or more logging_storage_account blocks as defined below.

    ManagedResourceGroup string

    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.

    NetworkInterfaces List<DeploymentNetworkInterface>

    One or more network_interface blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    Tags Dictionary<string, string>

    A mapping of tags which should be assigned to the Nginx Deployment.

    ResourceGroupName string

    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 and standard_Monthly.

    DiagnoseSupportEnabled bool

    Should the diagnosis support be enabled?

    FrontendPrivates []DeploymentFrontendPrivateArgs

    One or more frontend_private blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    FrontendPublic DeploymentFrontendPublicArgs

    A frontend_public block as defined below. Changing this forces a new Nginx Deployment to be created.

    Identity DeploymentIdentityArgs

    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.

    LoggingStorageAccounts []DeploymentLoggingStorageAccountArgs

    One or more logging_storage_account blocks as defined below.

    ManagedResourceGroup string

    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.

    NetworkInterfaces []DeploymentNetworkInterfaceArgs

    One or more network_interface blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    Tags map[string]string

    A mapping of tags which should be assigned to the Nginx Deployment.

    resourceGroupName String

    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 and standard_Monthly.

    diagnoseSupportEnabled Boolean

    Should the diagnosis support be enabled?

    frontendPrivates List<DeploymentFrontendPrivate>

    One or more frontend_private blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    frontendPublic DeploymentFrontendPublic

    A frontend_public block as defined below. Changing this forces a new Nginx Deployment to be created.

    identity DeploymentIdentity

    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.

    loggingStorageAccounts List<DeploymentLoggingStorageAccount>

    One or more logging_storage_account blocks as defined below.

    managedResourceGroup String

    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.

    networkInterfaces List<DeploymentNetworkInterface>

    One or more network_interface blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    tags Map<String,String>

    A mapping of tags which should be assigned to the Nginx Deployment.

    resourceGroupName string

    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 and standard_Monthly.

    diagnoseSupportEnabled boolean

    Should the diagnosis support be enabled?

    frontendPrivates DeploymentFrontendPrivate[]

    One or more frontend_private blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    frontendPublic DeploymentFrontendPublic

    A frontend_public block as defined below. Changing this forces a new Nginx Deployment to be created.

    identity DeploymentIdentity

    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.

    loggingStorageAccounts DeploymentLoggingStorageAccount[]

    One or more logging_storage_account blocks as defined below.

    managedResourceGroup string

    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.

    networkInterfaces DeploymentNetworkInterface[]

    One or more network_interface blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    tags {[key: string]: string}

    A mapping of tags which should be assigned to the Nginx Deployment.

    resource_group_name str

    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 and standard_Monthly.

    diagnose_support_enabled bool

    Should the diagnosis support be enabled?

    frontend_privates Sequence[DeploymentFrontendPrivateArgs]

    One or more frontend_private blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    frontend_public DeploymentFrontendPublicArgs

    A frontend_public block as defined below. Changing this forces a new Nginx Deployment to be created.

    identity DeploymentIdentityArgs

    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_accounts Sequence[DeploymentLoggingStorageAccountArgs]

    One or more logging_storage_account blocks as defined below.

    managed_resource_group str

    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[DeploymentNetworkInterfaceArgs]

    One or more network_interface blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    tags Mapping[str, str]

    A mapping of tags which should be assigned to the Nginx Deployment.

    resourceGroupName String

    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 and standard_Monthly.

    diagnoseSupportEnabled Boolean

    Should the diagnosis support be enabled?

    frontendPrivates List<Property Map>

    One or more frontend_private blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    frontendPublic 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.

    loggingStorageAccounts List<Property Map>

    One or more logging_storage_account blocks as defined below.

    managedResourceGroup String

    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.

    networkInterfaces List<Property Map>

    One or more network_interface blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    tags 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.

    IpAddress string

    Specify the IP Address of this private IP.

    NginxVersion string

    The version of deployed nginx.

    Id string

    The provider-assigned unique ID for this managed resource.

    IpAddress string

    Specify the IP Address of this private IP.

    NginxVersion string

    The version of deployed nginx.

    id String

    The provider-assigned unique ID for this managed resource.

    ipAddress String

    Specify the IP Address of this private IP.

    nginxVersion String

    The version of deployed nginx.

    id string

    The provider-assigned unique ID for this managed resource.

    ipAddress string

    Specify the IP Address of this private IP.

    nginxVersion 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.

    ipAddress String

    Specify the IP Address of this private IP.

    nginxVersion 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.
    The following state arguments are supported:
    DiagnoseSupportEnabled bool

    Should the diagnosis support be enabled?

    FrontendPrivates List<DeploymentFrontendPrivate>

    One or more frontend_private blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    FrontendPublic DeploymentFrontendPublic

    A frontend_public block as defined below. Changing this forces a new Nginx Deployment to be created.

    Identity DeploymentIdentity

    An identity block as defined below.

    IpAddress 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.

    LoggingStorageAccounts List<DeploymentLoggingStorageAccount>

    One or more logging_storage_account blocks as defined below.

    ManagedResourceGroup string

    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.

    NetworkInterfaces List<DeploymentNetworkInterface>

    One or more network_interface blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    NginxVersion string

    The version of deployed nginx.

    ResourceGroupName string

    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 and standard_Monthly.

    Tags Dictionary<string, string>

    A mapping of tags which should be assigned to the Nginx Deployment.

    DiagnoseSupportEnabled bool

    Should the diagnosis support be enabled?

    FrontendPrivates []DeploymentFrontendPrivateArgs

    One or more frontend_private blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    FrontendPublic DeploymentFrontendPublicArgs

    A frontend_public block as defined below. Changing this forces a new Nginx Deployment to be created.

    Identity DeploymentIdentityArgs

    An identity block as defined below.

    IpAddress 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.

    LoggingStorageAccounts []DeploymentLoggingStorageAccountArgs

    One or more logging_storage_account blocks as defined below.

    ManagedResourceGroup string

    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.

    NetworkInterfaces []DeploymentNetworkInterfaceArgs

    One or more network_interface blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    NginxVersion string

    The version of deployed nginx.

    ResourceGroupName string

    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 and standard_Monthly.

    Tags map[string]string

    A mapping of tags which should be assigned to the Nginx Deployment.

    diagnoseSupportEnabled Boolean

    Should the diagnosis support be enabled?

    frontendPrivates List<DeploymentFrontendPrivate>

    One or more frontend_private blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    frontendPublic DeploymentFrontendPublic

    A frontend_public block as defined below. Changing this forces a new Nginx Deployment to be created.

    identity DeploymentIdentity

    An identity block as defined below.

    ipAddress 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.

    loggingStorageAccounts List<DeploymentLoggingStorageAccount>

    One or more logging_storage_account blocks as defined below.

    managedResourceGroup String

    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.

    networkInterfaces List<DeploymentNetworkInterface>

    One or more network_interface blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    nginxVersion String

    The version of deployed nginx.

    resourceGroupName String

    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 and standard_Monthly.

    tags Map<String,String>

    A mapping of tags which should be assigned to the Nginx Deployment.

    diagnoseSupportEnabled boolean

    Should the diagnosis support be enabled?

    frontendPrivates DeploymentFrontendPrivate[]

    One or more frontend_private blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    frontendPublic DeploymentFrontendPublic

    A frontend_public block as defined below. Changing this forces a new Nginx Deployment to be created.

    identity DeploymentIdentity

    An identity block as defined below.

    ipAddress 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.

    loggingStorageAccounts DeploymentLoggingStorageAccount[]

    One or more logging_storage_account blocks as defined below.

    managedResourceGroup string

    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.

    networkInterfaces DeploymentNetworkInterface[]

    One or more network_interface blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    nginxVersion string

    The version of deployed nginx.

    resourceGroupName string

    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 and standard_Monthly.

    tags {[key: string]: string}

    A mapping of tags which should be assigned to the Nginx Deployment.

    diagnose_support_enabled bool

    Should the diagnosis support be enabled?

    frontend_privates Sequence[DeploymentFrontendPrivateArgs]

    One or more frontend_private blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    frontend_public DeploymentFrontendPublicArgs

    A frontend_public block as defined below. Changing this forces a new Nginx Deployment to be created.

    identity DeploymentIdentityArgs

    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_accounts Sequence[DeploymentLoggingStorageAccountArgs]

    One or more logging_storage_account blocks as defined below.

    managed_resource_group str

    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[DeploymentNetworkInterfaceArgs]

    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_name str

    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 and standard_Monthly.

    tags Mapping[str, str]

    A mapping of tags which should be assigned to the Nginx Deployment.

    diagnoseSupportEnabled Boolean

    Should the diagnosis support be enabled?

    frontendPrivates List<Property Map>

    One or more frontend_private blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    frontendPublic 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.

    ipAddress 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.

    loggingStorageAccounts List<Property Map>

    One or more logging_storage_account blocks as defined below.

    managedResourceGroup String

    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.

    networkInterfaces List<Property Map>

    One or more network_interface blocks as defined below. Changing this forces a new Nginx Deployment to be created.

    nginxVersion String

    The version of deployed nginx.

    resourceGroupName String

    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 and standard_Monthly.

    tags Map<String>

    A mapping of tags which should be assigned to the Nginx Deployment.

    Supporting Types

    DeploymentFrontendPrivate, DeploymentFrontendPrivateArgs

    AllocationMethod string

    Specify the methos of allocating the private IP. Possible values are Static and Dynamic.

    IpAddress string

    Specify the IP Address of this private IP.

    SubnetId string

    Specify the SubNet Resource ID to this Nginx Deployment.

    AllocationMethod string

    Specify the methos of allocating the private IP. Possible values are Static and Dynamic.

    IpAddress string

    Specify the IP Address of this private IP.

    SubnetId string

    Specify the SubNet Resource ID to this Nginx Deployment.

    allocationMethod String

    Specify the methos of allocating the private IP. Possible values are Static and Dynamic.

    ipAddress String

    Specify the IP Address of this private IP.

    subnetId String

    Specify the SubNet Resource ID to this Nginx Deployment.

    allocationMethod string

    Specify the methos of allocating the private IP. Possible values are Static and Dynamic.

    ipAddress string

    Specify the IP Address of this private IP.

    subnetId 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 and Dynamic.

    ip_address str

    Specify the IP Address of this private IP.

    subnet_id str

    Specify the SubNet Resource ID to this Nginx Deployment.

    allocationMethod String

    Specify the methos of allocating the private IP. Possible values are Static and Dynamic.

    ipAddress String

    Specify the IP Address of this private IP.

    subnetId String

    Specify the SubNet Resource ID to this Nginx Deployment.

    DeploymentFrontendPublic, DeploymentFrontendPublicArgs

    IpAddresses List<string>

    Specifies a list of Public IP Resouce ID to this Nginx Deployment.

    IpAddresses []string

    Specifies a list of Public IP Resouce ID to this Nginx Deployment.

    ipAddresses List<String>

    Specifies a list of Public IP Resouce ID to this Nginx Deployment.

    ipAddresses 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.

    ipAddresses 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 the identity_ids field.

    IdentityIds List<string>

    Specifies a list of user managed identity ids to be assigned. Required if type is UserAssigned.

    PrincipalId string
    TenantId string
    Type string

    Specifies the identity type of the Nginx Deployment. Possible values is UserAssigned where you can specify the Service Principal IDs in the identity_ids field.

    IdentityIds []string

    Specifies a list of user managed identity ids to be assigned. Required if type is UserAssigned.

    PrincipalId string
    TenantId string
    type String

    Specifies the identity type of the Nginx Deployment. Possible values is UserAssigned where you can specify the Service Principal IDs in the identity_ids field.

    identityIds List<String>

    Specifies a list of user managed identity ids to be assigned. Required if type is UserAssigned.

    principalId String
    tenantId String
    type string

    Specifies the identity type of the Nginx Deployment. Possible values is UserAssigned where you can specify the Service Principal IDs in the identity_ids field.

    identityIds string[]

    Specifies a list of user managed identity ids to be assigned. Required if type is UserAssigned.

    principalId string
    tenantId string
    type str

    Specifies the identity type of the Nginx Deployment. Possible values is UserAssigned where you can specify the Service Principal IDs in the identity_ids field.

    identity_ids Sequence[str]

    Specifies a list of user managed identity ids to be assigned. Required if type is UserAssigned.

    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 the identity_ids field.

    identityIds List<String>

    Specifies a list of user managed identity ids to be assigned. Required if type is UserAssigned.

    principalId String
    tenantId String

    DeploymentLoggingStorageAccount, DeploymentLoggingStorageAccountArgs

    ContainerName string

    Specify the container name of Stoage Account for logging.

    Name string

    The account name of the StorageAccount for Nginx Logging.

    ContainerName string

    Specify the container name of Stoage Account for logging.

    Name string

    The account name of the StorageAccount for Nginx Logging.

    containerName String

    Specify the container name of Stoage Account for logging.

    name String

    The account name of the StorageAccount for Nginx Logging.

    containerName 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.

    containerName String

    Specify the container name of Stoage Account for logging.

    name String

    The account name of the StorageAccount for Nginx Logging.

    DeploymentNetworkInterface, DeploymentNetworkInterfaceArgs

    SubnetId string

    Specify The SubNet Resource ID to this Nginx Deployment.

    SubnetId string

    Specify The SubNet Resource ID to this Nginx Deployment.

    subnetId String

    Specify The SubNet Resource ID to this Nginx Deployment.

    subnetId string

    Specify The SubNet Resource ID to this Nginx Deployment.

    subnet_id str

    Specify The SubNet Resource ID to this Nginx Deployment.

    subnetId 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.

    azure logo

    We recommend using Azure Native.

    Azure Classic v5.49.0 published on Tuesday, Aug 29, 2023 by Pulumi