Deployment

class Deployment : KotlinCustomResource

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

Properties

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

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

Link copied to clipboard

Should the diagnosis support be enabled?

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

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 id: Output<String>
Link copied to clipboard

An identity block as defined below.

Link copied to clipboard
val ipAddress: Output<String>

Specify the IP Address of this private IP.

Link copied to clipboard
val location: Output<String>

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

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>

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 nginxVersion: Output<String>

The version of deployed nginx.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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>

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>>?

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

Link copied to clipboard
val urn: Output<String>