DeploymentArgs

data class DeploymentArgs(val capacity: Output<Int>? = null, val diagnoseSupportEnabled: Output<Boolean>? = null, val email: Output<String>? = null, val frontendPrivates: Output<List<DeploymentFrontendPrivateArgs>>? = null, val frontendPublic: Output<DeploymentFrontendPublicArgs>? = null, val identity: Output<DeploymentIdentityArgs>? = null, val location: Output<String>? = null, val loggingStorageAccounts: Output<List<DeploymentLoggingStorageAccountArgs>>? = null, val managedResourceGroup: Output<String>? = null, val name: Output<String>? = null, val networkInterfaces: Output<List<DeploymentNetworkInterfaceArgs>>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<DeploymentArgs>

Manages a Nginx Deployment.

Example Usage

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())
.capacity(20)
.email("user@test.com")
.build());
}
}

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

Constructors

Link copied to clipboard
fun DeploymentArgs(capacity: Output<Int>? = null, diagnoseSupportEnabled: Output<Boolean>? = null, email: Output<String>? = null, frontendPrivates: Output<List<DeploymentFrontendPrivateArgs>>? = null, frontendPublic: Output<DeploymentFrontendPublicArgs>? = null, identity: Output<DeploymentIdentityArgs>? = null, location: Output<String>? = null, loggingStorageAccounts: Output<List<DeploymentLoggingStorageAccountArgs>>? = null, managedResourceGroup: Output<String>? = null, name: Output<String>? = null, networkInterfaces: Output<List<DeploymentNetworkInterfaceArgs>>? = null, resourceGroupName: Output<String>? = null, sku: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): DeploymentArgs

Properties

Link copied to clipboard
val capacity: Output<Int>? = null

Specify the number of NGINX capacity units for this NGINX deployment.

Link copied to clipboard
val diagnoseSupportEnabled: Output<Boolean>? = null

Should the diagnosis support be enabled?

Link copied to clipboard
val email: Output<String>? = null

Specify the preferred support contact email address of the user used for sending alerts and notification.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
val identity: Output<DeploymentIdentityArgs>? = null

An identity block as defined below.

Link copied to clipboard
val location: Output<String>? = null

The Azure Region where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.

Link copied to clipboard

One or more logging_storage_account blocks as defined below.

Link copied to clipboard
val managedResourceGroup: Output<String>? = null

Specify the managed resource group to deploy VNet injection related network resources. Changing this forces a new Nginx Deployment to be created.

Link copied to clipboard
val name: Output<String>? = null

The name which should be used for this Nginx Deployment. Changing this forces a new Nginx Deployment to be created.

Link copied to clipboard

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

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the Resource Group where the Nginx Deployment should exist. Changing this forces a new Nginx Deployment to be created.

Link copied to clipboard
val sku: Output<String>? = null

Specify the Name of Nginx deployment SKU. The possible value are publicpreview_Monthly_gmz7xq9ge3py and standard_Monthly.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

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