We recommend using Azure Native.
azure.nginx.Deployment
Explore with Pulumi AI
Manages a Nginx Deployment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as std from "@pulumi/std";
const example = new azure.core.ResourceGroup("example", {
name: "example-rg",
location: "West Europe",
});
const examplePublicIp = new azure.network.PublicIp("example", {
name: "example",
resourceGroupName: example.name,
location: example.location,
allocationMethod: "Static",
sku: "Standard",
tags: {
environment: "Production",
},
});
const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
name: "example-vnet",
addressSpaces: ["10.0.0.0/16"],
location: example.location,
resourceGroupName: example.name,
});
const exampleSubnet = new azure.network.Subnet("example", {
name: "example-subnet",
resourceGroupName: example.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 configContent = std.base64encode({
input: `http {
server {
listen 80;
location / {
auth_basic "Protected Area";
auth_basic_user_file /opt/.htpasswd;
default_type text/html;
}
include site/*.conf;
}
}
`,
}).then(invoke => invoke.result);
const protectedContent = std.base64encode({
input: "user:$apr1$VeUA5kt.$IjjRk//8miRxDsZvD4daF1\n",
}).then(invoke => invoke.result);
const subConfigContent = std.base64encode({
input: `location /bbb {
default_type text/html;
return 200 '<!doctype html><html lang="en"><head></head><body>
<div>this one will be updated</div>
<div>at 10:38 am</div>
</body></html>';
}
`,
}).then(invoke => invoke.result);
const exampleDeployment = new azure.nginx.Deployment("example", {
name: "example-nginx",
resourceGroupName: example.name,
sku: "publicpreview_Monthly_gmz7xq9ge3py",
location: example.location,
managedResourceGroup: "example",
diagnoseSupportEnabled: true,
automaticUpgradeChannel: "stable",
frontendPublic: {
ipAddresses: [examplePublicIp.id],
},
networkInterfaces: [{
subnetId: exampleSubnet.id,
}],
capacity: 20,
email: "user@test.com",
configuration: {
rootFile: "/etc/nginx/nginx.conf",
configFiles: [
{
content: configContent,
virtualPath: "/etc/nginx/nginx.conf",
},
{
content: subConfigContent,
virtualPath: "/etc/nginx/site/b.conf",
},
],
protectedFiles: [{
content: protectedContent,
virtualPath: "/opt/.htpasswd",
}],
},
});
import pulumi
import pulumi_azure as azure
import pulumi_std as std
example = azure.core.ResourceGroup("example",
name="example-rg",
location="West Europe")
example_public_ip = azure.network.PublicIp("example",
name="example",
resource_group_name=example.name,
location=example.location,
allocation_method="Static",
sku="Standard",
tags={
"environment": "Production",
})
example_virtual_network = azure.network.VirtualNetwork("example",
name="example-vnet",
address_spaces=["10.0.0.0/16"],
location=example.location,
resource_group_name=example.name)
example_subnet = azure.network.Subnet("example",
name="example-subnet",
resource_group_name=example.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"],
),
)])
config_content = std.base64encode(input="""http {
server {
listen 80;
location / {
auth_basic "Protected Area";
auth_basic_user_file /opt/.htpasswd;
default_type text/html;
}
include site/*.conf;
}
}
""").result
protected_content = std.base64encode(input="user:$apr1$VeUA5kt.$IjjRk//8miRxDsZvD4daF1\n").result
sub_config_content = std.base64encode(input="""location /bbb {
default_type text/html;
return 200 '<!doctype html><html lang="en"><head></head><body>
<div>this one will be updated</div>
<div>at 10:38 am</div>
</body></html>';
}
""").result
example_deployment = azure.nginx.Deployment("example",
name="example-nginx",
resource_group_name=example.name,
sku="publicpreview_Monthly_gmz7xq9ge3py",
location=example.location,
managed_resource_group="example",
diagnose_support_enabled=True,
automatic_upgrade_channel="stable",
frontend_public=azure.nginx.DeploymentFrontendPublicArgs(
ip_addresses=[example_public_ip.id],
),
network_interfaces=[azure.nginx.DeploymentNetworkInterfaceArgs(
subnet_id=example_subnet.id,
)],
capacity=20,
email="user@test.com",
configuration=azure.nginx.DeploymentConfigurationArgs(
root_file="/etc/nginx/nginx.conf",
config_files=[
azure.nginx.DeploymentConfigurationConfigFileArgs(
content=config_content,
virtual_path="/etc/nginx/nginx.conf",
),
azure.nginx.DeploymentConfigurationConfigFileArgs(
content=sub_config_content,
virtual_path="/etc/nginx/site/b.conf",
),
],
protected_files=[azure.nginx.DeploymentConfigurationProtectedFileArgs(
content=protected_content,
virtual_path="/opt/.htpasswd",
)],
))
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-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-rg"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
examplePublicIp, err := network.NewPublicIp(ctx, "example", &network.PublicIpArgs{
Name: pulumi.String("example"),
ResourceGroupName: example.Name,
Location: example.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, "example", &network.VirtualNetworkArgs{
Name: pulumi.String("example-vnet"),
AddressSpaces: pulumi.StringArray{
pulumi.String("10.0.0.0/16"),
},
Location: example.Location,
ResourceGroupName: example.Name,
})
if err != nil {
return err
}
exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
Name: pulumi.String("example-subnet"),
ResourceGroupName: example.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
}
configContent := std.Base64encode(ctx, &std.Base64encodeArgs{
Input: `http {
server {
listen 80;
location / {
auth_basic "Protected Area";
auth_basic_user_file /opt/.htpasswd;
default_type text/html;
}
include site/*.conf;
}
}
`,
}, nil).Result
protectedContent := std.Base64encode(ctx, &std.Base64encodeArgs{
Input: "user:$apr1$VeUA5kt.$IjjRk//8miRxDsZvD4daF1\n",
}, nil).Result
subConfigContent := std.Base64encode(ctx, &std.Base64encodeArgs{
Input: `location /bbb {
default_type text/html;
return 200 '<!doctype html><html lang="en"><head></head><body>
<div>this one will be updated</div>
<div>at 10:38 am</div>
</body></html>';
}
`,
}, nil).Result
_, err = nginx.NewDeployment(ctx, "example", &nginx.DeploymentArgs{
Name: pulumi.String("example-nginx"),
ResourceGroupName: example.Name,
Sku: pulumi.String("publicpreview_Monthly_gmz7xq9ge3py"),
Location: example.Location,
ManagedResourceGroup: pulumi.String("example"),
DiagnoseSupportEnabled: pulumi.Bool(true),
AutomaticUpgradeChannel: pulumi.String("stable"),
FrontendPublic: &nginx.DeploymentFrontendPublicArgs{
IpAddresses: pulumi.StringArray{
examplePublicIp.ID(),
},
},
NetworkInterfaces: nginx.DeploymentNetworkInterfaceArray{
&nginx.DeploymentNetworkInterfaceArgs{
SubnetId: exampleSubnet.ID(),
},
},
Capacity: pulumi.Int(20),
Email: pulumi.String("user@test.com"),
Configuration: &nginx.DeploymentConfigurationArgs{
RootFile: pulumi.String("/etc/nginx/nginx.conf"),
ConfigFiles: nginx.DeploymentConfigurationConfigFileArray{
&nginx.DeploymentConfigurationConfigFileArgs{
Content: pulumi.String(configContent),
VirtualPath: pulumi.String("/etc/nginx/nginx.conf"),
},
&nginx.DeploymentConfigurationConfigFileArgs{
Content: pulumi.String(subConfigContent),
VirtualPath: pulumi.String("/etc/nginx/site/b.conf"),
},
},
ProtectedFiles: nginx.DeploymentConfigurationProtectedFileArray{
&nginx.DeploymentConfigurationProtectedFileArgs{
Content: pulumi.String(protectedContent),
VirtualPath: pulumi.String("/opt/.htpasswd"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-rg",
Location = "West Europe",
});
var examplePublicIp = new Azure.Network.PublicIp("example", new()
{
Name = "example",
ResourceGroupName = example.Name,
Location = example.Location,
AllocationMethod = "Static",
Sku = "Standard",
Tags =
{
{ "environment", "Production" },
},
});
var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
{
Name = "example-vnet",
AddressSpaces = new[]
{
"10.0.0.0/16",
},
Location = example.Location,
ResourceGroupName = example.Name,
});
var exampleSubnet = new Azure.Network.Subnet("example", new()
{
Name = "example-subnet",
ResourceGroupName = example.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 configContent = Std.Base64encode.Invoke(new()
{
Input = @"http {
server {
listen 80;
location / {
auth_basic ""Protected Area"";
auth_basic_user_file /opt/.htpasswd;
default_type text/html;
}
include site/*.conf;
}
}
",
}).Apply(invoke => invoke.Result);
var protectedContent = Std.Base64encode.Invoke(new()
{
Input = @"user:$apr1$VeUA5kt.$IjjRk//8miRxDsZvD4daF1
",
}).Apply(invoke => invoke.Result);
var subConfigContent = Std.Base64encode.Invoke(new()
{
Input = @"location /bbb {
default_type text/html;
return 200 '<!doctype html><html lang=""en""><head></head><body>
<div>this one will be updated</div>
<div>at 10:38 am</div>
</body></html>';
}
",
}).Apply(invoke => invoke.Result);
var exampleDeployment = new Azure.Nginx.Deployment("example", new()
{
Name = "example-nginx",
ResourceGroupName = example.Name,
Sku = "publicpreview_Monthly_gmz7xq9ge3py",
Location = example.Location,
ManagedResourceGroup = "example",
DiagnoseSupportEnabled = true,
AutomaticUpgradeChannel = "stable",
FrontendPublic = new Azure.Nginx.Inputs.DeploymentFrontendPublicArgs
{
IpAddresses = new[]
{
examplePublicIp.Id,
},
},
NetworkInterfaces = new[]
{
new Azure.Nginx.Inputs.DeploymentNetworkInterfaceArgs
{
SubnetId = exampleSubnet.Id,
},
},
Capacity = 20,
Email = "user@test.com",
Configuration = new Azure.Nginx.Inputs.DeploymentConfigurationArgs
{
RootFile = "/etc/nginx/nginx.conf",
ConfigFiles = new[]
{
new Azure.Nginx.Inputs.DeploymentConfigurationConfigFileArgs
{
Content = configContent,
VirtualPath = "/etc/nginx/nginx.conf",
},
new Azure.Nginx.Inputs.DeploymentConfigurationConfigFileArgs
{
Content = subConfigContent,
VirtualPath = "/etc/nginx/site/b.conf",
},
},
ProtectedFiles = new[]
{
new Azure.Nginx.Inputs.DeploymentConfigurationProtectedFileArgs
{
Content = protectedContent,
VirtualPath = "/opt/.htpasswd",
},
},
},
});
});
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 com.pulumi.azure.nginx.inputs.DeploymentConfigurationArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-rg")
.location("West Europe")
.build());
var examplePublicIp = new PublicIp("examplePublicIp", PublicIpArgs.builder()
.name("example")
.resourceGroupName(example.name())
.location(example.location())
.allocationMethod("Static")
.sku("Standard")
.tags(Map.of("environment", "Production"))
.build());
var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
.name("example-vnet")
.addressSpaces("10.0.0.0/16")
.location(example.location())
.resourceGroupName(example.name())
.build());
var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
.name("example-subnet")
.resourceGroupName(example.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());
final var configContent = StdFunctions.base64encode(Base64encodeArgs.builder()
.input("""
http {
server {
listen 80;
location / {
auth_basic "Protected Area";
auth_basic_user_file /opt/.htpasswd;
default_type text/html;
}
include site/*.conf;
}
}
""")
.build()).result();
final var protectedContent = StdFunctions.base64encode(Base64encodeArgs.builder()
.input("""
user:$apr1$VeUA5kt.$IjjRk//8miRxDsZvD4daF1
""")
.build()).result();
final var subConfigContent = StdFunctions.base64encode(Base64encodeArgs.builder()
.input("""
location /bbb {
default_type text/html;
return 200 '<!doctype html><html lang="en"><head></head><body>
<div>this one will be updated</div>
<div>at 10:38 am</div>
</body></html>';
}
""")
.build()).result();
var exampleDeployment = new Deployment("exampleDeployment", DeploymentArgs.builder()
.name("example-nginx")
.resourceGroupName(example.name())
.sku("publicpreview_Monthly_gmz7xq9ge3py")
.location(example.location())
.managedResourceGroup("example")
.diagnoseSupportEnabled(true)
.automaticUpgradeChannel("stable")
.frontendPublic(DeploymentFrontendPublicArgs.builder()
.ipAddresses(examplePublicIp.id())
.build())
.networkInterfaces(DeploymentNetworkInterfaceArgs.builder()
.subnetId(exampleSubnet.id())
.build())
.capacity(20)
.email("user@test.com")
.configuration(DeploymentConfigurationArgs.builder()
.rootFile("/etc/nginx/nginx.conf")
.configFiles(
DeploymentConfigurationConfigFileArgs.builder()
.content(configContent)
.virtualPath("/etc/nginx/nginx.conf")
.build(),
DeploymentConfigurationConfigFileArgs.builder()
.content(subConfigContent)
.virtualPath("/etc/nginx/site/b.conf")
.build())
.protectedFiles(DeploymentConfigurationProtectedFileArgs.builder()
.content(protectedContent)
.virtualPath("/opt/.htpasswd")
.build())
.build())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-rg
location: West Europe
examplePublicIp:
type: azure:network:PublicIp
name: example
properties:
name: example
resourceGroupName: ${example.name}
location: ${example.location}
allocationMethod: Static
sku: Standard
tags:
environment: Production
exampleVirtualNetwork:
type: azure:network:VirtualNetwork
name: example
properties:
name: example-vnet
addressSpaces:
- 10.0.0.0/16
location: ${example.location}
resourceGroupName: ${example.name}
exampleSubnet:
type: azure:network:Subnet
name: example
properties:
name: example-subnet
resourceGroupName: ${example.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
name: example
properties:
name: example-nginx
resourceGroupName: ${example.name}
sku: publicpreview_Monthly_gmz7xq9ge3py
location: ${example.location}
managedResourceGroup: example
diagnoseSupportEnabled: true
automaticUpgradeChannel: stable
frontendPublic:
ipAddresses:
- ${examplePublicIp.id}
networkInterfaces:
- subnetId: ${exampleSubnet.id}
capacity: 20
email: user@test.com
configuration:
rootFile: /etc/nginx/nginx.conf
configFiles:
- content: ${configContent}
virtualPath: /etc/nginx/nginx.conf
- content: ${subConfigContent}
virtualPath: /etc/nginx/site/b.conf
protectedFiles:
- content: ${protectedContent}
virtualPath: /opt/.htpasswd
variables:
configContent:
fn::invoke:
Function: std:base64encode
Arguments:
input: |
http {
server {
listen 80;
location / {
auth_basic "Protected Area";
auth_basic_user_file /opt/.htpasswd;
default_type text/html;
}
include site/*.conf;
}
}
Return: result
protectedContent:
fn::invoke:
Function: std:base64encode
Arguments:
input: |
user:$apr1$VeUA5kt.$IjjRk//8miRxDsZvD4daF1
Return: result
subConfigContent:
fn::invoke:
Function: std:base64encode
Arguments:
input: |
location /bbb {
default_type text/html;
return 200 '<!doctype html><html lang="en"><head></head><body>
<div>this one will be updated</div>
<div>at 10:38 am</div>
</body></html>';
}
Return: result
Create Deployment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Deployment(name: string, args: DeploymentArgs, opts?: CustomResourceOptions);
@overload
def Deployment(resource_name: str,
args: DeploymentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Deployment(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
sku: Optional[str] = None,
identity: Optional[DeploymentIdentityArgs] = None,
location: Optional[str] = None,
diagnose_support_enabled: Optional[bool] = None,
email: Optional[str] = None,
frontend_privates: Optional[Sequence[DeploymentFrontendPrivateArgs]] = None,
frontend_public: Optional[DeploymentFrontendPublicArgs] = None,
auto_scale_profiles: Optional[Sequence[DeploymentAutoScaleProfileArgs]] = None,
configuration: Optional[DeploymentConfigurationArgs] = None,
logging_storage_accounts: Optional[Sequence[DeploymentLoggingStorageAccountArgs]] = None,
managed_resource_group: Optional[str] = None,
name: Optional[str] = None,
network_interfaces: Optional[Sequence[DeploymentNetworkInterfaceArgs]] = None,
capacity: Optional[int] = None,
automatic_upgrade_channel: Optional[str] = None,
tags: Optional[Mapping[str, str]] = 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.
Parameters
- 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.
Example
The following reference example uses placeholder values for all input properties.
var azureDeploymentResource = new Azure.Nginx.Deployment("azureDeploymentResource", new()
{
ResourceGroupName = "string",
Sku = "string",
Identity = new Azure.Nginx.Inputs.DeploymentIdentityArgs
{
Type = "string",
IdentityIds = new[]
{
"string",
},
PrincipalId = "string",
TenantId = "string",
},
Location = "string",
DiagnoseSupportEnabled = false,
Email = "string",
FrontendPrivates = new[]
{
new Azure.Nginx.Inputs.DeploymentFrontendPrivateArgs
{
AllocationMethod = "string",
IpAddress = "string",
SubnetId = "string",
},
},
FrontendPublic = new Azure.Nginx.Inputs.DeploymentFrontendPublicArgs
{
IpAddresses = new[]
{
"string",
},
},
AutoScaleProfiles = new[]
{
new Azure.Nginx.Inputs.DeploymentAutoScaleProfileArgs
{
MaxCapacity = 0,
MinCapacity = 0,
Name = "string",
},
},
Configuration = new Azure.Nginx.Inputs.DeploymentConfigurationArgs
{
RootFile = "string",
ConfigFiles = new[]
{
new Azure.Nginx.Inputs.DeploymentConfigurationConfigFileArgs
{
Content = "string",
VirtualPath = "string",
},
},
PackageData = "string",
ProtectedFiles = new[]
{
new Azure.Nginx.Inputs.DeploymentConfigurationProtectedFileArgs
{
Content = "string",
VirtualPath = "string",
},
},
},
LoggingStorageAccounts = new[]
{
new Azure.Nginx.Inputs.DeploymentLoggingStorageAccountArgs
{
ContainerName = "string",
Name = "string",
},
},
ManagedResourceGroup = "string",
Name = "string",
NetworkInterfaces = new[]
{
new Azure.Nginx.Inputs.DeploymentNetworkInterfaceArgs
{
SubnetId = "string",
},
},
Capacity = 0,
AutomaticUpgradeChannel = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := nginx.NewDeployment(ctx, "azureDeploymentResource", &nginx.DeploymentArgs{
ResourceGroupName: pulumi.String("string"),
Sku: pulumi.String("string"),
Identity: &nginx.DeploymentIdentityArgs{
Type: pulumi.String("string"),
IdentityIds: pulumi.StringArray{
pulumi.String("string"),
},
PrincipalId: pulumi.String("string"),
TenantId: pulumi.String("string"),
},
Location: pulumi.String("string"),
DiagnoseSupportEnabled: pulumi.Bool(false),
Email: pulumi.String("string"),
FrontendPrivates: nginx.DeploymentFrontendPrivateArray{
&nginx.DeploymentFrontendPrivateArgs{
AllocationMethod: pulumi.String("string"),
IpAddress: pulumi.String("string"),
SubnetId: pulumi.String("string"),
},
},
FrontendPublic: &nginx.DeploymentFrontendPublicArgs{
IpAddresses: pulumi.StringArray{
pulumi.String("string"),
},
},
AutoScaleProfiles: nginx.DeploymentAutoScaleProfileArray{
&nginx.DeploymentAutoScaleProfileArgs{
MaxCapacity: pulumi.Int(0),
MinCapacity: pulumi.Int(0),
Name: pulumi.String("string"),
},
},
Configuration: &nginx.DeploymentConfigurationArgs{
RootFile: pulumi.String("string"),
ConfigFiles: nginx.DeploymentConfigurationConfigFileArray{
&nginx.DeploymentConfigurationConfigFileArgs{
Content: pulumi.String("string"),
VirtualPath: pulumi.String("string"),
},
},
PackageData: pulumi.String("string"),
ProtectedFiles: nginx.DeploymentConfigurationProtectedFileArray{
&nginx.DeploymentConfigurationProtectedFileArgs{
Content: pulumi.String("string"),
VirtualPath: pulumi.String("string"),
},
},
},
LoggingStorageAccounts: nginx.DeploymentLoggingStorageAccountArray{
&nginx.DeploymentLoggingStorageAccountArgs{
ContainerName: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
ManagedResourceGroup: pulumi.String("string"),
Name: pulumi.String("string"),
NetworkInterfaces: nginx.DeploymentNetworkInterfaceArray{
&nginx.DeploymentNetworkInterfaceArgs{
SubnetId: pulumi.String("string"),
},
},
Capacity: pulumi.Int(0),
AutomaticUpgradeChannel: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var azureDeploymentResource = new Deployment("azureDeploymentResource", DeploymentArgs.builder()
.resourceGroupName("string")
.sku("string")
.identity(DeploymentIdentityArgs.builder()
.type("string")
.identityIds("string")
.principalId("string")
.tenantId("string")
.build())
.location("string")
.diagnoseSupportEnabled(false)
.email("string")
.frontendPrivates(DeploymentFrontendPrivateArgs.builder()
.allocationMethod("string")
.ipAddress("string")
.subnetId("string")
.build())
.frontendPublic(DeploymentFrontendPublicArgs.builder()
.ipAddresses("string")
.build())
.autoScaleProfiles(DeploymentAutoScaleProfileArgs.builder()
.maxCapacity(0)
.minCapacity(0)
.name("string")
.build())
.configuration(DeploymentConfigurationArgs.builder()
.rootFile("string")
.configFiles(DeploymentConfigurationConfigFileArgs.builder()
.content("string")
.virtualPath("string")
.build())
.packageData("string")
.protectedFiles(DeploymentConfigurationProtectedFileArgs.builder()
.content("string")
.virtualPath("string")
.build())
.build())
.loggingStorageAccounts(DeploymentLoggingStorageAccountArgs.builder()
.containerName("string")
.name("string")
.build())
.managedResourceGroup("string")
.name("string")
.networkInterfaces(DeploymentNetworkInterfaceArgs.builder()
.subnetId("string")
.build())
.capacity(0)
.automaticUpgradeChannel("string")
.tags(Map.of("string", "string"))
.build());
azure_deployment_resource = azure.nginx.Deployment("azureDeploymentResource",
resource_group_name="string",
sku="string",
identity=azure.nginx.DeploymentIdentityArgs(
type="string",
identity_ids=["string"],
principal_id="string",
tenant_id="string",
),
location="string",
diagnose_support_enabled=False,
email="string",
frontend_privates=[azure.nginx.DeploymentFrontendPrivateArgs(
allocation_method="string",
ip_address="string",
subnet_id="string",
)],
frontend_public=azure.nginx.DeploymentFrontendPublicArgs(
ip_addresses=["string"],
),
auto_scale_profiles=[azure.nginx.DeploymentAutoScaleProfileArgs(
max_capacity=0,
min_capacity=0,
name="string",
)],
configuration=azure.nginx.DeploymentConfigurationArgs(
root_file="string",
config_files=[azure.nginx.DeploymentConfigurationConfigFileArgs(
content="string",
virtual_path="string",
)],
package_data="string",
protected_files=[azure.nginx.DeploymentConfigurationProtectedFileArgs(
content="string",
virtual_path="string",
)],
),
logging_storage_accounts=[azure.nginx.DeploymentLoggingStorageAccountArgs(
container_name="string",
name="string",
)],
managed_resource_group="string",
name="string",
network_interfaces=[azure.nginx.DeploymentNetworkInterfaceArgs(
subnet_id="string",
)],
capacity=0,
automatic_upgrade_channel="string",
tags={
"string": "string",
})
const azureDeploymentResource = new azure.nginx.Deployment("azureDeploymentResource", {
resourceGroupName: "string",
sku: "string",
identity: {
type: "string",
identityIds: ["string"],
principalId: "string",
tenantId: "string",
},
location: "string",
diagnoseSupportEnabled: false,
email: "string",
frontendPrivates: [{
allocationMethod: "string",
ipAddress: "string",
subnetId: "string",
}],
frontendPublic: {
ipAddresses: ["string"],
},
autoScaleProfiles: [{
maxCapacity: 0,
minCapacity: 0,
name: "string",
}],
configuration: {
rootFile: "string",
configFiles: [{
content: "string",
virtualPath: "string",
}],
packageData: "string",
protectedFiles: [{
content: "string",
virtualPath: "string",
}],
},
loggingStorageAccounts: [{
containerName: "string",
name: "string",
}],
managedResourceGroup: "string",
name: "string",
networkInterfaces: [{
subnetId: "string",
}],
capacity: 0,
automaticUpgradeChannel: "string",
tags: {
string: "string",
},
});
type: azure:nginx:Deployment
properties:
autoScaleProfiles:
- maxCapacity: 0
minCapacity: 0
name: string
automaticUpgradeChannel: string
capacity: 0
configuration:
configFiles:
- content: string
virtualPath: string
packageData: string
protectedFiles:
- content: string
virtualPath: string
rootFile: string
diagnoseSupportEnabled: false
email: string
frontendPrivates:
- allocationMethod: string
ipAddress: string
subnetId: string
frontendPublic:
ipAddresses:
- string
identity:
identityIds:
- string
principalId: string
tenantId: string
type: string
location: string
loggingStorageAccounts:
- containerName: string
name: string
managedResourceGroup: string
name: string
networkInterfaces:
- subnetId: string
resourceGroupName: string
sku: string
tags:
string: string
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
- Specifies the Nginx Deployment SKU. Possible values include
standard_Monthly
. Changing this forces a new resource to be created. - Auto
Scale List<DeploymentProfiles Auto Scale Profile> - An
auto_scale_profile
block as defined below. - Automatic
Upgrade stringChannel - Specify the automatic upgrade channel for the NGINX deployment. Defaults to
stable
. The possible values arestable
andpreview
. - Capacity int
Specify the number of NGINX capacity units for this NGINX deployment. Defaults to
20
.Note For more information on NGINX capacity units, please refer to the NGINX scaling guidance documentation
- Configuration
Deployment
Configuration - Specify a custom
configuration
block as defined below. - Diagnose
Support boolEnabled - Should the diagnosis support be enabled?
- Email string
- Specify the preferred support contact email address of the user used for sending alerts and notification.
- 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
- Specifies the Nginx Deployment SKU. Possible values include
standard_Monthly
. Changing this forces a new resource to be created. - Auto
Scale []DeploymentProfiles Auto Scale Profile Args - An
auto_scale_profile
block as defined below. - Automatic
Upgrade stringChannel - Specify the automatic upgrade channel for the NGINX deployment. Defaults to
stable
. The possible values arestable
andpreview
. - Capacity int
Specify the number of NGINX capacity units for this NGINX deployment. Defaults to
20
.Note For more information on NGINX capacity units, please refer to the NGINX scaling guidance documentation
- Configuration
Deployment
Configuration Args - Specify a custom
configuration
block as defined below. - Diagnose
Support boolEnabled - Should the diagnosis support be enabled?
- Email string
- Specify the preferred support contact email address of the user used for sending alerts and notification.
- 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
- Specifies the Nginx Deployment SKU. Possible values include
standard_Monthly
. Changing this forces a new resource to be created. - auto
Scale List<DeploymentProfiles Auto Scale Profile> - An
auto_scale_profile
block as defined below. - automatic
Upgrade StringChannel - Specify the automatic upgrade channel for the NGINX deployment. Defaults to
stable
. The possible values arestable
andpreview
. - capacity Integer
Specify the number of NGINX capacity units for this NGINX deployment. Defaults to
20
.Note For more information on NGINX capacity units, please refer to the NGINX scaling guidance documentation
- configuration
Deployment
Configuration - Specify a custom
configuration
block as defined below. - diagnose
Support BooleanEnabled - Should the diagnosis support be enabled?
- email String
- Specify the preferred support contact email address of the user used for sending alerts and notification.
- 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
- Specifies the Nginx Deployment SKU. Possible values include
standard_Monthly
. Changing this forces a new resource to be created. - auto
Scale DeploymentProfiles Auto Scale Profile[] - An
auto_scale_profile
block as defined below. - automatic
Upgrade stringChannel - Specify the automatic upgrade channel for the NGINX deployment. Defaults to
stable
. The possible values arestable
andpreview
. - capacity number
Specify the number of NGINX capacity units for this NGINX deployment. Defaults to
20
.Note For more information on NGINX capacity units, please refer to the NGINX scaling guidance documentation
- configuration
Deployment
Configuration - Specify a custom
configuration
block as defined below. - diagnose
Support booleanEnabled - Should the diagnosis support be enabled?
- email string
- Specify the preferred support contact email address of the user used for sending alerts and notification.
- 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
- Specifies the Nginx Deployment SKU. Possible values include
standard_Monthly
. Changing this forces a new resource to be created. - auto_
scale_ Sequence[Deploymentprofiles Auto Scale Profile Args] - An
auto_scale_profile
block as defined below. - automatic_
upgrade_ strchannel - Specify the automatic upgrade channel for the NGINX deployment. Defaults to
stable
. The possible values arestable
andpreview
. - capacity int
Specify the number of NGINX capacity units for this NGINX deployment. Defaults to
20
.Note For more information on NGINX capacity units, please refer to the NGINX scaling guidance documentation
- configuration
Deployment
Configuration Args - Specify a custom
configuration
block as defined below. - diagnose_
support_ boolenabled - Should the diagnosis support be enabled?
- email str
- Specify the preferred support contact email address of the user used for sending alerts and notification.
- 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
- Specifies the Nginx Deployment SKU. Possible values include
standard_Monthly
. Changing this forces a new resource to be created. - auto
Scale List<Property Map>Profiles - An
auto_scale_profile
block as defined below. - automatic
Upgrade StringChannel - Specify the automatic upgrade channel for the NGINX deployment. Defaults to
stable
. The possible values arestable
andpreview
. - capacity Number
Specify the number of NGINX capacity units for this NGINX deployment. Defaults to
20
.Note For more information on NGINX capacity units, please refer to the NGINX scaling guidance documentation
- configuration Property Map
- Specify a custom
configuration
block as defined below. - diagnose
Support BooleanEnabled - Should the diagnosis support be enabled?
- email String
- Specify the preferred support contact email address of the user used for sending alerts and notification.
- 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,
auto_scale_profiles: Optional[Sequence[DeploymentAutoScaleProfileArgs]] = None,
automatic_upgrade_channel: Optional[str] = None,
capacity: Optional[int] = None,
configuration: Optional[DeploymentConfigurationArgs] = None,
diagnose_support_enabled: Optional[bool] = None,
email: Optional[str] = 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.
- Auto
Scale List<DeploymentProfiles Auto Scale Profile> - An
auto_scale_profile
block as defined below. - Automatic
Upgrade stringChannel - Specify the automatic upgrade channel for the NGINX deployment. Defaults to
stable
. The possible values arestable
andpreview
. - Capacity int
Specify the number of NGINX capacity units for this NGINX deployment. Defaults to
20
.Note For more information on NGINX capacity units, please refer to the NGINX scaling guidance documentation
- Configuration
Deployment
Configuration - Specify a custom
configuration
block as defined below. - Diagnose
Support boolEnabled - Should the diagnosis support be enabled?
- Email string
- Specify the preferred support contact email address of the user used for sending alerts and notification.
- 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
- Specifies the Nginx Deployment SKU. Possible values include
standard_Monthly
. Changing this forces a new resource to be created. - Dictionary<string, string>
- A mapping of tags which should be assigned to the Nginx Deployment.
- Auto
Scale []DeploymentProfiles Auto Scale Profile Args - An
auto_scale_profile
block as defined below. - Automatic
Upgrade stringChannel - Specify the automatic upgrade channel for the NGINX deployment. Defaults to
stable
. The possible values arestable
andpreview
. - Capacity int
Specify the number of NGINX capacity units for this NGINX deployment. Defaults to
20
.Note For more information on NGINX capacity units, please refer to the NGINX scaling guidance documentation
- Configuration
Deployment
Configuration Args - Specify a custom
configuration
block as defined below. - Diagnose
Support boolEnabled - Should the diagnosis support be enabled?
- Email string
- Specify the preferred support contact email address of the user used for sending alerts and notification.
- 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
- Specifies the Nginx Deployment SKU. Possible values include
standard_Monthly
. Changing this forces a new resource to be created. - map[string]string
- A mapping of tags which should be assigned to the Nginx Deployment.
- auto
Scale List<DeploymentProfiles Auto Scale Profile> - An
auto_scale_profile
block as defined below. - automatic
Upgrade StringChannel - Specify the automatic upgrade channel for the NGINX deployment. Defaults to
stable
. The possible values arestable
andpreview
. - capacity Integer
Specify the number of NGINX capacity units for this NGINX deployment. Defaults to
20
.Note For more information on NGINX capacity units, please refer to the NGINX scaling guidance documentation
- configuration
Deployment
Configuration - Specify a custom
configuration
block as defined below. - diagnose
Support BooleanEnabled - Should the diagnosis support be enabled?
- email String
- Specify the preferred support contact email address of the user used for sending alerts and notification.
- 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
- Specifies the Nginx Deployment SKU. Possible values include
standard_Monthly
. Changing this forces a new resource to be created. - Map<String,String>
- A mapping of tags which should be assigned to the Nginx Deployment.
- auto
Scale DeploymentProfiles Auto Scale Profile[] - An
auto_scale_profile
block as defined below. - automatic
Upgrade stringChannel - Specify the automatic upgrade channel for the NGINX deployment. Defaults to
stable
. The possible values arestable
andpreview
. - capacity number
Specify the number of NGINX capacity units for this NGINX deployment. Defaults to
20
.Note For more information on NGINX capacity units, please refer to the NGINX scaling guidance documentation
- configuration
Deployment
Configuration - Specify a custom
configuration
block as defined below. - diagnose
Support booleanEnabled - Should the diagnosis support be enabled?
- email string
- Specify the preferred support contact email address of the user used for sending alerts and notification.
- 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
- Specifies the Nginx Deployment SKU. Possible values include
standard_Monthly
. Changing this forces a new resource to be created. - {[key: string]: string}
- A mapping of tags which should be assigned to the Nginx Deployment.
- auto_
scale_ Sequence[Deploymentprofiles Auto Scale Profile Args] - An
auto_scale_profile
block as defined below. - automatic_
upgrade_ strchannel - Specify the automatic upgrade channel for the NGINX deployment. Defaults to
stable
. The possible values arestable
andpreview
. - capacity int
Specify the number of NGINX capacity units for this NGINX deployment. Defaults to
20
.Note For more information on NGINX capacity units, please refer to the NGINX scaling guidance documentation
- configuration
Deployment
Configuration Args - Specify a custom
configuration
block as defined below. - diagnose_
support_ boolenabled - Should the diagnosis support be enabled?
- email str
- Specify the preferred support contact email address of the user used for sending alerts and notification.
- 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
- Specifies the Nginx Deployment SKU. Possible values include
standard_Monthly
. Changing this forces a new resource to be created. - Mapping[str, str]
- A mapping of tags which should be assigned to the Nginx Deployment.
- auto
Scale List<Property Map>Profiles - An
auto_scale_profile
block as defined below. - automatic
Upgrade StringChannel - Specify the automatic upgrade channel for the NGINX deployment. Defaults to
stable
. The possible values arestable
andpreview
. - capacity Number
Specify the number of NGINX capacity units for this NGINX deployment. Defaults to
20
.Note For more information on NGINX capacity units, please refer to the NGINX scaling guidance documentation
- configuration Property Map
- Specify a custom
configuration
block as defined below. - diagnose
Support BooleanEnabled - Should the diagnosis support be enabled?
- email String
- Specify the preferred support contact email address of the user used for sending alerts and notification.
- 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
- Specifies the Nginx Deployment SKU. Possible values include
standard_Monthly
. Changing this forces a new resource to be created. - Map<String>
- A mapping of tags which should be assigned to the Nginx Deployment.
Supporting Types
DeploymentAutoScaleProfile, DeploymentAutoScaleProfileArgs
- Max
Capacity int - Min
Capacity int - Specify the minimum number of NGINX capacity units for this NGINX Deployment.
- Name string
- Specify the name of the autoscaling profile.
- Max
Capacity int - Min
Capacity int - Specify the minimum number of NGINX capacity units for this NGINX Deployment.
- Name string
- Specify the name of the autoscaling profile.
- max
Capacity Integer - min
Capacity Integer - Specify the minimum number of NGINX capacity units for this NGINX Deployment.
- name String
- Specify the name of the autoscaling profile.
- max
Capacity number - min
Capacity number - Specify the minimum number of NGINX capacity units for this NGINX Deployment.
- name string
- Specify the name of the autoscaling profile.
- max_
capacity int - min_
capacity int - Specify the minimum number of NGINX capacity units for this NGINX Deployment.
- name str
- Specify the name of the autoscaling profile.
- max
Capacity Number - min
Capacity Number - Specify the minimum number of NGINX capacity units for this NGINX Deployment.
- name String
- Specify the name of the autoscaling profile.
DeploymentConfiguration, DeploymentConfigurationArgs
- Root
File string - Specify the root file path of this Nginx Configuration.
- Config
Files List<DeploymentConfiguration Config File> - One or more
config_file
blocks as defined below. - Package
Data string - Specify the package data for this configuration.
- Protected
Files List<DeploymentConfiguration Protected File> - One or more
protected_file
blocks with sensitive information as defined below. If specifiedconfig_file
must also be specified.
- Root
File string - Specify the root file path of this Nginx Configuration.
- Config
Files []DeploymentConfiguration Config File - One or more
config_file
blocks as defined below. - Package
Data string - Specify the package data for this configuration.
- Protected
Files []DeploymentConfiguration Protected File - One or more
protected_file
blocks with sensitive information as defined below. If specifiedconfig_file
must also be specified.
- root
File String - Specify the root file path of this Nginx Configuration.
- config
Files List<DeploymentConfiguration Config File> - One or more
config_file
blocks as defined below. - package
Data String - Specify the package data for this configuration.
- protected
Files List<DeploymentConfiguration Protected File> - One or more
protected_file
blocks with sensitive information as defined below. If specifiedconfig_file
must also be specified.
- root
File string - Specify the root file path of this Nginx Configuration.
- config
Files DeploymentConfiguration Config File[] - One or more
config_file
blocks as defined below. - package
Data string - Specify the package data for this configuration.
- protected
Files DeploymentConfiguration Protected File[] - One or more
protected_file
blocks with sensitive information as defined below. If specifiedconfig_file
must also be specified.
- root_
file str - Specify the root file path of this Nginx Configuration.
- config_
files Sequence[DeploymentConfiguration Config File] - One or more
config_file
blocks as defined below. - package_
data str - Specify the package data for this configuration.
- protected_
files Sequence[DeploymentConfiguration Protected File] - One or more
protected_file
blocks with sensitive information as defined below. If specifiedconfig_file
must also be specified.
- root
File String - Specify the root file path of this Nginx Configuration.
- config
Files List<Property Map> - One or more
config_file
blocks as defined below. - package
Data String - Specify the package data for this configuration.
- protected
Files List<Property Map> - One or more
protected_file
blocks with sensitive information as defined below. If specifiedconfig_file
must also be specified.
DeploymentConfigurationConfigFile, DeploymentConfigurationConfigFileArgs
- Content string
- Specifies the base-64 encoded contents of this config file.
- Virtual
Path string - Specify the path of this config file.
- Content string
- Specifies the base-64 encoded contents of this config file.
- Virtual
Path string - Specify the path of this config file.
- content String
- Specifies the base-64 encoded contents of this config file.
- virtual
Path String - Specify the path of this config file.
- content string
- Specifies the base-64 encoded contents of this config file.
- virtual
Path string - Specify the path of this config file.
- content str
- Specifies the base-64 encoded contents of this config file.
- virtual_
path str - Specify the path of this config file.
- content String
- Specifies the base-64 encoded contents of this config file.
- virtual
Path String - Specify the path of this config file.
DeploymentConfigurationProtectedFile, DeploymentConfigurationProtectedFileArgs
- Content string
- Specifies the base-64 encoded contents of this config file (Sensitive).
- Virtual
Path string - Specify the path of this config file.
- Content string
- Specifies the base-64 encoded contents of this config file (Sensitive).
- Virtual
Path string - Specify the path of this config file.
- content String
- Specifies the base-64 encoded contents of this config file (Sensitive).
- virtual
Path String - Specify the path of this config file.
- content string
- Specifies the base-64 encoded contents of this config file (Sensitive).
- virtual
Path string - Specify the path of this config file.
- content str
- Specifies the base-64 encoded contents of this config file (Sensitive).
- virtual_
path str - Specify the path of this config file.
- content String
- Specifies the base-64 encoded contents of this config file (Sensitive).
- virtual
Path String - Specify the path of this config file.
DeploymentFrontendPrivate, DeploymentFrontendPrivateArgs
- Allocation
Method string - Specify the method 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 method 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 method 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 method 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 method 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 method 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 Resource ID to this Nginx Deployment.
- Ip
Addresses []string - Specifies a list of Public IP Resource ID to this Nginx Deployment.
- ip
Addresses List<String> - Specifies a list of Public IP Resource ID to this Nginx Deployment.
- ip
Addresses string[] - Specifies a list of Public IP Resource ID to this Nginx Deployment.
- ip_
addresses Sequence[str] - Specifies a list of Public IP Resource ID to this Nginx Deployment.
- ip
Addresses List<String> - Specifies a list of Public IP Resource ID to this Nginx Deployment.
DeploymentIdentity, DeploymentIdentityArgs
- Type string
- Specifies the identity type of the Nginx Deployment. Possible values are
UserAssigned
,SystemAssigned
. - Identity
Ids List<string> Specifies a list of user managed identity ids to be assigned.
NOTE: This is required when
type
is set toUserAssigned
.- Principal
Id string - Tenant
Id string
- Type string
- Specifies the identity type of the Nginx Deployment. Possible values are
UserAssigned
,SystemAssigned
. - Identity
Ids []string Specifies a list of user managed identity ids to be assigned.
NOTE: This is required when
type
is set toUserAssigned
.- Principal
Id string - Tenant
Id string
- type String
- Specifies the identity type of the Nginx Deployment. Possible values are
UserAssigned
,SystemAssigned
. - identity
Ids List<String> Specifies a list of user managed identity ids to be assigned.
NOTE: This is required when
type
is set toUserAssigned
.- principal
Id String - tenant
Id String
- type string
- Specifies the identity type of the Nginx Deployment. Possible values are
UserAssigned
,SystemAssigned
. - identity
Ids string[] Specifies a list of user managed identity ids to be assigned.
NOTE: This is required when
type
is set toUserAssigned
.- principal
Id string - tenant
Id string
- type str
- Specifies the identity type of the Nginx Deployment. Possible values are
UserAssigned
,SystemAssigned
. - identity_
ids Sequence[str] Specifies a list of user managed identity ids to be assigned.
NOTE: This is required when
type
is set toUserAssigned
.- principal_
id str - tenant_
id str
- type String
- Specifies the identity type of the Nginx Deployment. Possible values are
UserAssigned
,SystemAssigned
. - identity
Ids List<String> Specifies a list of user managed identity ids to be assigned.
NOTE: This is required when
type
is set toUserAssigned
.- principal
Id String - tenant
Id String
DeploymentLoggingStorageAccount, DeploymentLoggingStorageAccountArgs
- Container
Name string - Specify the container name of Storage Account for logging.
- Name string
- The account name of the StorageAccount for Nginx Logging.
- Container
Name string - Specify the container name of Storage Account for logging.
- Name string
- The account name of the StorageAccount for Nginx Logging.
- container
Name String - Specify the container name of Storage Account for logging.
- name String
- The account name of the StorageAccount for Nginx Logging.
- container
Name string - Specify the container name of Storage Account for logging.
- name string
- The account name of the StorageAccount for Nginx Logging.
- container_
name str - Specify the container name of Storage Account for logging.
- name str
- The account name of the StorageAccount for Nginx Logging.
- container
Name String - Specify the container name of Storage 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.