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

We recommend using Azure Native.

Azure Classic v5.71.0 published on Tuesday, Apr 9, 2024 by Pulumi

azure.nginx.getDeployment

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.71.0 published on Tuesday, Apr 9, 2024 by Pulumi

    Use this data source to access information about an existing Nginx Deployment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.nginx.getDeployment({
        name: "existing",
        resourceGroupName: "existing",
    });
    export const id = example.then(example => example.id);
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.nginx.get_deployment(name="existing",
        resource_group_name="existing")
    pulumi.export("id", example.id)
    
    package main
    
    import (
    	"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 {
    		example, err := nginx.LookupDeployment(ctx, &nginx.LookupDeploymentArgs{
    			Name:              "existing",
    			ResourceGroupName: "existing",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("id", example.Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Azure.Nginx.GetDeployment.Invoke(new()
        {
            Name = "existing",
            ResourceGroupName = "existing",
        });
    
        return new Dictionary<string, object?>
        {
            ["id"] = example.Apply(getDeploymentResult => getDeploymentResult.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.nginx.NginxFunctions;
    import com.pulumi.azure.nginx.inputs.GetDeploymentArgs;
    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) {
            final var example = NginxFunctions.getDeployment(GetDeploymentArgs.builder()
                .name("existing")
                .resourceGroupName("existing")
                .build());
    
            ctx.export("id", example.applyValue(getDeploymentResult -> getDeploymentResult.id()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: azure:nginx:getDeployment
          Arguments:
            name: existing
            resourceGroupName: existing
    outputs:
      id: ${example.id}
    

    Using getDeployment

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDeployment(args: GetDeploymentArgs, opts?: InvokeOptions): Promise<GetDeploymentResult>
    function getDeploymentOutput(args: GetDeploymentOutputArgs, opts?: InvokeOptions): Output<GetDeploymentResult>
    def get_deployment(name: Optional[str] = None,
                       resource_group_name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetDeploymentResult
    def get_deployment_output(name: Optional[pulumi.Input[str]] = None,
                       resource_group_name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetDeploymentResult]
    func LookupDeployment(ctx *Context, args *LookupDeploymentArgs, opts ...InvokeOption) (*LookupDeploymentResult, error)
    func LookupDeploymentOutput(ctx *Context, args *LookupDeploymentOutputArgs, opts ...InvokeOption) LookupDeploymentResultOutput

    > Note: This function is named LookupDeployment in the Go SDK.

    public static class GetDeployment 
    {
        public static Task<GetDeploymentResult> InvokeAsync(GetDeploymentArgs args, InvokeOptions? opts = null)
        public static Output<GetDeploymentResult> Invoke(GetDeploymentInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDeploymentResult> getDeployment(GetDeploymentArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:nginx/getDeployment:getDeployment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of this Nginx Deployment.
    ResourceGroupName string
    The name of the Resource Group where the Nginx Deployment exists.
    Name string
    The name of this Nginx Deployment.
    ResourceGroupName string
    The name of the Resource Group where the Nginx Deployment exists.
    name String
    The name of this Nginx Deployment.
    resourceGroupName String
    The name of the Resource Group where the Nginx Deployment exists.
    name string
    The name of this Nginx Deployment.
    resourceGroupName string
    The name of the Resource Group where the Nginx Deployment exists.
    name str
    The name of this Nginx Deployment.
    resource_group_name str
    The name of the Resource Group where the Nginx Deployment exists.
    name String
    The name of this Nginx Deployment.
    resourceGroupName String
    The name of the Resource Group where the Nginx Deployment exists.

    getDeployment Result

    The following output properties are available:

    AutoScaleProfiles List<GetDeploymentAutoScaleProfile>
    An auto_scale_profile block as defined below.
    AutomaticUpgradeChannel string
    The automatic upgrade channel for this NGINX deployment.
    Capacity int
    The number of NGINX capacity units for this Nginx Deployment.
    DiagnoseSupportEnabled bool
    Whether diagnostic settings are enabled.
    Email string
    Preferred email associated with the Nginx Deployment.
    FrontendPrivates List<GetDeploymentFrontendPrivate>
    A frontend_private block as defined below.
    FrontendPublics List<GetDeploymentFrontendPublic>
    A frontend_public block as defined below.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identities List<GetDeploymentIdentity>
    A identity block as defined below.
    IpAddress string
    List of public IPs of the Ngix Deployment.
    Location string
    The Azure Region where the Nginx Deployment exists.
    LoggingStorageAccounts List<GetDeploymentLoggingStorageAccount>
    A logging_storage_account block as defined below.
    ManagedResourceGroup string
    Auto-generated managed resource group for the Nginx Deployment.
    Name string
    Name of the autoscaling profile.
    NetworkInterfaces List<GetDeploymentNetworkInterface>
    A network_interface block as defined below.
    NginxVersion string
    NGINX version of the Nginx Deployment.
    ResourceGroupName string
    Sku string
    The Nginx Deployment SKU. Possible values include standard_Monthly.
    Tags Dictionary<string, string>
    A mapping of tags assigned to the Nginx Deployment.
    AutoScaleProfiles []GetDeploymentAutoScaleProfile
    An auto_scale_profile block as defined below.
    AutomaticUpgradeChannel string
    The automatic upgrade channel for this NGINX deployment.
    Capacity int
    The number of NGINX capacity units for this Nginx Deployment.
    DiagnoseSupportEnabled bool
    Whether diagnostic settings are enabled.
    Email string
    Preferred email associated with the Nginx Deployment.
    FrontendPrivates []GetDeploymentFrontendPrivate
    A frontend_private block as defined below.
    FrontendPublics []GetDeploymentFrontendPublic
    A frontend_public block as defined below.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identities []GetDeploymentIdentity
    A identity block as defined below.
    IpAddress string
    List of public IPs of the Ngix Deployment.
    Location string
    The Azure Region where the Nginx Deployment exists.
    LoggingStorageAccounts []GetDeploymentLoggingStorageAccount
    A logging_storage_account block as defined below.
    ManagedResourceGroup string
    Auto-generated managed resource group for the Nginx Deployment.
    Name string
    Name of the autoscaling profile.
    NetworkInterfaces []GetDeploymentNetworkInterface
    A network_interface block as defined below.
    NginxVersion string
    NGINX version of the Nginx Deployment.
    ResourceGroupName string
    Sku string
    The Nginx Deployment SKU. Possible values include standard_Monthly.
    Tags map[string]string
    A mapping of tags assigned to the Nginx Deployment.
    autoScaleProfiles List<GetDeploymentAutoScaleProfile>
    An auto_scale_profile block as defined below.
    automaticUpgradeChannel String
    The automatic upgrade channel for this NGINX deployment.
    capacity Integer
    The number of NGINX capacity units for this Nginx Deployment.
    diagnoseSupportEnabled Boolean
    Whether diagnostic settings are enabled.
    email String
    Preferred email associated with the Nginx Deployment.
    frontendPrivates List<GetDeploymentFrontendPrivate>
    A frontend_private block as defined below.
    frontendPublics List<GetDeploymentFrontendPublic>
    A frontend_public block as defined below.
    id String
    The provider-assigned unique ID for this managed resource.
    identities List<GetDeploymentIdentity>
    A identity block as defined below.
    ipAddress String
    List of public IPs of the Ngix Deployment.
    location String
    The Azure Region where the Nginx Deployment exists.
    loggingStorageAccounts List<GetDeploymentLoggingStorageAccount>
    A logging_storage_account block as defined below.
    managedResourceGroup String
    Auto-generated managed resource group for the Nginx Deployment.
    name String
    Name of the autoscaling profile.
    networkInterfaces List<GetDeploymentNetworkInterface>
    A network_interface block as defined below.
    nginxVersion String
    NGINX version of the Nginx Deployment.
    resourceGroupName String
    sku String
    The Nginx Deployment SKU. Possible values include standard_Monthly.
    tags Map<String,String>
    A mapping of tags assigned to the Nginx Deployment.
    autoScaleProfiles GetDeploymentAutoScaleProfile[]
    An auto_scale_profile block as defined below.
    automaticUpgradeChannel string
    The automatic upgrade channel for this NGINX deployment.
    capacity number
    The number of NGINX capacity units for this Nginx Deployment.
    diagnoseSupportEnabled boolean
    Whether diagnostic settings are enabled.
    email string
    Preferred email associated with the Nginx Deployment.
    frontendPrivates GetDeploymentFrontendPrivate[]
    A frontend_private block as defined below.
    frontendPublics GetDeploymentFrontendPublic[]
    A frontend_public block as defined below.
    id string
    The provider-assigned unique ID for this managed resource.
    identities GetDeploymentIdentity[]
    A identity block as defined below.
    ipAddress string
    List of public IPs of the Ngix Deployment.
    location string
    The Azure Region where the Nginx Deployment exists.
    loggingStorageAccounts GetDeploymentLoggingStorageAccount[]
    A logging_storage_account block as defined below.
    managedResourceGroup string
    Auto-generated managed resource group for the Nginx Deployment.
    name string
    Name of the autoscaling profile.
    networkInterfaces GetDeploymentNetworkInterface[]
    A network_interface block as defined below.
    nginxVersion string
    NGINX version of the Nginx Deployment.
    resourceGroupName string
    sku string
    The Nginx Deployment SKU. Possible values include standard_Monthly.
    tags {[key: string]: string}
    A mapping of tags assigned to the Nginx Deployment.
    auto_scale_profiles Sequence[GetDeploymentAutoScaleProfile]
    An auto_scale_profile block as defined below.
    automatic_upgrade_channel str
    The automatic upgrade channel for this NGINX deployment.
    capacity int
    The number of NGINX capacity units for this Nginx Deployment.
    diagnose_support_enabled bool
    Whether diagnostic settings are enabled.
    email str
    Preferred email associated with the Nginx Deployment.
    frontend_privates Sequence[GetDeploymentFrontendPrivate]
    A frontend_private block as defined below.
    frontend_publics Sequence[GetDeploymentFrontendPublic]
    A frontend_public block as defined below.
    id str
    The provider-assigned unique ID for this managed resource.
    identities Sequence[GetDeploymentIdentity]
    A identity block as defined below.
    ip_address str
    List of public IPs of the Ngix Deployment.
    location str
    The Azure Region where the Nginx Deployment exists.
    logging_storage_accounts Sequence[GetDeploymentLoggingStorageAccount]
    A logging_storage_account block as defined below.
    managed_resource_group str
    Auto-generated managed resource group for the Nginx Deployment.
    name str
    Name of the autoscaling profile.
    network_interfaces Sequence[GetDeploymentNetworkInterface]
    A network_interface block as defined below.
    nginx_version str
    NGINX version of the Nginx Deployment.
    resource_group_name str
    sku str
    The Nginx Deployment SKU. Possible values include standard_Monthly.
    tags Mapping[str, str]
    A mapping of tags assigned to the Nginx Deployment.
    autoScaleProfiles List<Property Map>
    An auto_scale_profile block as defined below.
    automaticUpgradeChannel String
    The automatic upgrade channel for this NGINX deployment.
    capacity Number
    The number of NGINX capacity units for this Nginx Deployment.
    diagnoseSupportEnabled Boolean
    Whether diagnostic settings are enabled.
    email String
    Preferred email associated with the Nginx Deployment.
    frontendPrivates List<Property Map>
    A frontend_private block as defined below.
    frontendPublics List<Property Map>
    A frontend_public block as defined below.
    id String
    The provider-assigned unique ID for this managed resource.
    identities List<Property Map>
    A identity block as defined below.
    ipAddress String
    List of public IPs of the Ngix Deployment.
    location String
    The Azure Region where the Nginx Deployment exists.
    loggingStorageAccounts List<Property Map>
    A logging_storage_account block as defined below.
    managedResourceGroup String
    Auto-generated managed resource group for the Nginx Deployment.
    name String
    Name of the autoscaling profile.
    networkInterfaces List<Property Map>
    A network_interface block as defined below.
    nginxVersion String
    NGINX version of the Nginx Deployment.
    resourceGroupName String
    sku String
    The Nginx Deployment SKU. Possible values include standard_Monthly.
    tags Map<String>
    A mapping of tags assigned to the Nginx Deployment.

    Supporting Types

    GetDeploymentAutoScaleProfile

    MaxCapacity int
    The maximum number of NGINX capacity units for this NGINX Deployment.
    MinCapacity int
    The minimum number of NGINX capacity units for this NGINX Deployment.
    Name string
    The name of this Nginx Deployment.
    MaxCapacity int
    The maximum number of NGINX capacity units for this NGINX Deployment.
    MinCapacity int
    The minimum number of NGINX capacity units for this NGINX Deployment.
    Name string
    The name of this Nginx Deployment.
    maxCapacity Integer
    The maximum number of NGINX capacity units for this NGINX Deployment.
    minCapacity Integer
    The minimum number of NGINX capacity units for this NGINX Deployment.
    name String
    The name of this Nginx Deployment.
    maxCapacity number
    The maximum number of NGINX capacity units for this NGINX Deployment.
    minCapacity number
    The minimum number of NGINX capacity units for this NGINX Deployment.
    name string
    The name of this Nginx Deployment.
    max_capacity int
    The maximum number of NGINX capacity units for this NGINX Deployment.
    min_capacity int
    The minimum number of NGINX capacity units for this NGINX Deployment.
    name str
    The name of this Nginx Deployment.
    maxCapacity Number
    The maximum number of NGINX capacity units for this NGINX Deployment.
    minCapacity Number
    The minimum number of NGINX capacity units for this NGINX Deployment.
    name String
    The name of this Nginx Deployment.

    GetDeploymentFrontendPrivate

    AllocationMethod string
    The method of allocating the private IP to the Nginx Deployment.
    IpAddress string
    List of public IPs of the Ngix Deployment.
    SubnetId string
    The subnet resource ID of the Nginx Deployment.
    AllocationMethod string
    The method of allocating the private IP to the Nginx Deployment.
    IpAddress string
    List of public IPs of the Ngix Deployment.
    SubnetId string
    The subnet resource ID of the Nginx Deployment.
    allocationMethod String
    The method of allocating the private IP to the Nginx Deployment.
    ipAddress String
    List of public IPs of the Ngix Deployment.
    subnetId String
    The subnet resource ID of the Nginx Deployment.
    allocationMethod string
    The method of allocating the private IP to the Nginx Deployment.
    ipAddress string
    List of public IPs of the Ngix Deployment.
    subnetId string
    The subnet resource ID of the Nginx Deployment.
    allocation_method str
    The method of allocating the private IP to the Nginx Deployment.
    ip_address str
    List of public IPs of the Ngix Deployment.
    subnet_id str
    The subnet resource ID of the Nginx Deployment.
    allocationMethod String
    The method of allocating the private IP to the Nginx Deployment.
    ipAddress String
    List of public IPs of the Ngix Deployment.
    subnetId String
    The subnet resource ID of the Nginx Deployment.

    GetDeploymentFrontendPublic

    IpAddresses List<string>
    List of public IPs of the Ngix Deployment.
    IpAddresses []string
    List of public IPs of the Ngix Deployment.
    ipAddresses List<String>
    List of public IPs of the Ngix Deployment.
    ipAddresses string[]
    List of public IPs of the Ngix Deployment.
    ip_addresses Sequence[str]
    List of public IPs of the Ngix Deployment.
    ipAddresses List<String>
    List of public IPs of the Ngix Deployment.

    GetDeploymentIdentity

    IdentityIds List<string>
    List of identities attached to the Nginx Deployment.
    PrincipalId string
    TenantId string
    Type string
    Type of identity attached to the Nginx Deployment.
    IdentityIds []string
    List of identities attached to the Nginx Deployment.
    PrincipalId string
    TenantId string
    Type string
    Type of identity attached to the Nginx Deployment.
    identityIds List<String>
    List of identities attached to the Nginx Deployment.
    principalId String
    tenantId String
    type String
    Type of identity attached to the Nginx Deployment.
    identityIds string[]
    List of identities attached to the Nginx Deployment.
    principalId string
    tenantId string
    type string
    Type of identity attached to the Nginx Deployment.
    identity_ids Sequence[str]
    List of identities attached to the Nginx Deployment.
    principal_id str
    tenant_id str
    type str
    Type of identity attached to the Nginx Deployment.
    identityIds List<String>
    List of identities attached to the Nginx Deployment.
    principalId String
    tenantId String
    type String
    Type of identity attached to the Nginx Deployment.

    GetDeploymentLoggingStorageAccount

    ContainerName string
    the container name of Storage Account for logging.
    Name string
    The name of this Nginx Deployment.
    ContainerName string
    the container name of Storage Account for logging.
    Name string
    The name of this Nginx Deployment.
    containerName String
    the container name of Storage Account for logging.
    name String
    The name of this Nginx Deployment.
    containerName string
    the container name of Storage Account for logging.
    name string
    The name of this Nginx Deployment.
    container_name str
    the container name of Storage Account for logging.
    name str
    The name of this Nginx Deployment.
    containerName String
    the container name of Storage Account for logging.
    name String
    The name of this Nginx Deployment.

    GetDeploymentNetworkInterface

    SubnetId string
    The subnet resource ID of the Nginx Deployment.
    SubnetId string
    The subnet resource ID of the Nginx Deployment.
    subnetId String
    The subnet resource ID of the Nginx Deployment.
    subnetId string
    The subnet resource ID of the Nginx Deployment.
    subnet_id str
    The subnet resource ID of the Nginx Deployment.
    subnetId String
    The subnet resource ID of the Nginx Deployment.

    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.71.0 published on Tuesday, Apr 9, 2024 by Pulumi