We recommend using Azure Native.
Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi
azure.nginx.getDeployment
Explore with Pulumi AI
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/v6/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)
public static Output<GetDeploymentResult> getDeployment(GetDeploymentArgs args, InvokeOptions options)
fn::invoke:
function: azure:nginx/getDeployment:getDeployment
arguments:
# arguments dictionary
The following arguments are supported:
- Name
This property is required. string - The name of this NGINX Deployment.
- Resource
Group Name This property is required. string - The name of the Resource Group where the NGINX Deployment exists.
- Name
This property is required. string - The name of this NGINX Deployment.
- Resource
Group Name This property is required. string - The name of the Resource Group where the NGINX Deployment exists.
- name
This property is required. String - The name of this NGINX Deployment.
- resource
Group Name This property is required. String - The name of the Resource Group where the NGINX Deployment exists.
- name
This property is required. string - The name of this NGINX Deployment.
- resource
Group Name This property is required. string - The name of the Resource Group where the NGINX Deployment exists.
- name
This property is required. str - The name of this NGINX Deployment.
- resource_
group_ name This property is required. str - The name of the Resource Group where the NGINX Deployment exists.
- name
This property is required. String - The name of this NGINX Deployment.
- resource
Group Name This property is required. String - The name of the Resource Group where the NGINX Deployment exists.
getDeployment Result
The following output properties are available:
- Auto
Scale List<GetProfiles Deployment Auto Scale Profile> - An
auto_scale_profile
block as defined below. - Automatic
Upgrade stringChannel - The automatic upgrade channel for this NGINX deployment.
- Capacity int
- The number of NGINX capacity units for this NGINX Deployment.
- Dataplane
Api stringEndpoint - The dataplane API endpoint of the NGINX Deployment.
- Diagnose
Support boolEnabled - Whether metrics are exported to Azure Monitor.
- Email string
- Preferred email associated with the NGINX Deployment.
- Frontend
Privates List<GetDeployment Frontend Private> - A
frontend_private
block as defined below. - Frontend
Publics List<GetDeployment Frontend Public> - A
frontend_public
block as defined below. - Id string
- The provider-assigned unique ID for this managed resource.
- Identities
List<Get
Deployment Identity> - A
identity
block as defined below. - Ip
Address string - The list of Public IP Resource IDs for this NGINX Deployment.
- Location string
- The Azure Region where the NGINX Deployment exists.
- Logging
Storage List<GetAccounts Deployment Logging Storage Account> - Managed
Resource stringGroup - Name string
- Name of the autoscaling profile.
- Network
Interfaces List<GetDeployment Network Interface> - A
network_interface
block as defined below. - Nginx
Version string - NGINX version of the Deployment.
- Resource
Group stringName - Sku string
- The NGINX Deployment SKU.
- Dictionary<string, string>
- A mapping of tags assigned to the NGINX Deployment.
- Auto
Scale []GetProfiles Deployment Auto Scale Profile - An
auto_scale_profile
block as defined below. - Automatic
Upgrade stringChannel - The automatic upgrade channel for this NGINX deployment.
- Capacity int
- The number of NGINX capacity units for this NGINX Deployment.
- Dataplane
Api stringEndpoint - The dataplane API endpoint of the NGINX Deployment.
- Diagnose
Support boolEnabled - Whether metrics are exported to Azure Monitor.
- Email string
- Preferred email associated with the NGINX Deployment.
- Frontend
Privates []GetDeployment Frontend Private - A
frontend_private
block as defined below. - Frontend
Publics []GetDeployment Frontend Public - A
frontend_public
block as defined below. - Id string
- The provider-assigned unique ID for this managed resource.
- Identities
[]Get
Deployment Identity - A
identity
block as defined below. - Ip
Address string - The list of Public IP Resource IDs for this NGINX Deployment.
- Location string
- The Azure Region where the NGINX Deployment exists.
- Logging
Storage []GetAccounts Deployment Logging Storage Account - Managed
Resource stringGroup - Name string
- Name of the autoscaling profile.
- Network
Interfaces []GetDeployment Network Interface - A
network_interface
block as defined below. - Nginx
Version string - NGINX version of the Deployment.
- Resource
Group stringName - Sku string
- The NGINX Deployment SKU.
- map[string]string
- A mapping of tags assigned to the NGINX Deployment.
- auto
Scale List<GetProfiles Deployment Auto Scale Profile> - An
auto_scale_profile
block as defined below. - automatic
Upgrade StringChannel - The automatic upgrade channel for this NGINX deployment.
- capacity Integer
- The number of NGINX capacity units for this NGINX Deployment.
- dataplane
Api StringEndpoint - The dataplane API endpoint of the NGINX Deployment.
- diagnose
Support BooleanEnabled - Whether metrics are exported to Azure Monitor.
- email String
- Preferred email associated with the NGINX Deployment.
- frontend
Privates List<GetDeployment Frontend Private> - A
frontend_private
block as defined below. - frontend
Publics List<GetDeployment Frontend Public> - A
frontend_public
block as defined below. - id String
- The provider-assigned unique ID for this managed resource.
- identities
List<Get
Deployment Identity> - A
identity
block as defined below. - ip
Address String - The list of Public IP Resource IDs for this NGINX Deployment.
- location String
- The Azure Region where the NGINX Deployment exists.
- logging
Storage List<GetAccounts Deployment Logging Storage Account> - managed
Resource StringGroup - name String
- Name of the autoscaling profile.
- network
Interfaces List<GetDeployment Network Interface> - A
network_interface
block as defined below. - nginx
Version String - NGINX version of the Deployment.
- resource
Group StringName - sku String
- The NGINX Deployment SKU.
- Map<String,String>
- A mapping of tags assigned to the NGINX Deployment.
- auto
Scale GetProfiles Deployment Auto Scale Profile[] - An
auto_scale_profile
block as defined below. - automatic
Upgrade stringChannel - The automatic upgrade channel for this NGINX deployment.
- capacity number
- The number of NGINX capacity units for this NGINX Deployment.
- dataplane
Api stringEndpoint - The dataplane API endpoint of the NGINX Deployment.
- diagnose
Support booleanEnabled - Whether metrics are exported to Azure Monitor.
- email string
- Preferred email associated with the NGINX Deployment.
- frontend
Privates GetDeployment Frontend Private[] - A
frontend_private
block as defined below. - frontend
Publics GetDeployment Frontend Public[] - A
frontend_public
block as defined below. - id string
- The provider-assigned unique ID for this managed resource.
- identities
Get
Deployment Identity[] - A
identity
block as defined below. - ip
Address string - The list of Public IP Resource IDs for this NGINX Deployment.
- location string
- The Azure Region where the NGINX Deployment exists.
- logging
Storage GetAccounts Deployment Logging Storage Account[] - managed
Resource stringGroup - name string
- Name of the autoscaling profile.
- network
Interfaces GetDeployment Network Interface[] - A
network_interface
block as defined below. - nginx
Version string - NGINX version of the Deployment.
- resource
Group stringName - sku string
- The NGINX Deployment SKU.
- {[key: string]: string}
- A mapping of tags assigned to the NGINX Deployment.
- auto_
scale_ Sequence[Getprofiles Deployment Auto Scale Profile] - An
auto_scale_profile
block as defined below. - automatic_
upgrade_ strchannel - The automatic upgrade channel for this NGINX deployment.
- capacity int
- The number of NGINX capacity units for this NGINX Deployment.
- dataplane_
api_ strendpoint - The dataplane API endpoint of the NGINX Deployment.
- diagnose_
support_ boolenabled - Whether metrics are exported to Azure Monitor.
- email str
- Preferred email associated with the NGINX Deployment.
- frontend_
privates Sequence[GetDeployment Frontend Private] - A
frontend_private
block as defined below. - frontend_
publics Sequence[GetDeployment Frontend Public] - A
frontend_public
block as defined below. - id str
- The provider-assigned unique ID for this managed resource.
- identities
Sequence[Get
Deployment Identity] - A
identity
block as defined below. - ip_
address str - The list of Public IP Resource IDs for this NGINX Deployment.
- location str
- The Azure Region where the NGINX Deployment exists.
- logging_
storage_ Sequence[Getaccounts Deployment Logging Storage Account] - managed_
resource_ strgroup - name str
- Name of the autoscaling profile.
- network_
interfaces Sequence[GetDeployment Network Interface] - A
network_interface
block as defined below. - nginx_
version str - NGINX version of the Deployment.
- resource_
group_ strname - sku str
- The NGINX Deployment SKU.
- Mapping[str, str]
- A mapping of tags assigned to the NGINX Deployment.
- auto
Scale List<Property Map>Profiles - An
auto_scale_profile
block as defined below. - automatic
Upgrade StringChannel - The automatic upgrade channel for this NGINX deployment.
- capacity Number
- The number of NGINX capacity units for this NGINX Deployment.
- dataplane
Api StringEndpoint - The dataplane API endpoint of the NGINX Deployment.
- diagnose
Support BooleanEnabled - Whether metrics are exported to Azure Monitor.
- email String
- Preferred email associated with the NGINX Deployment.
- frontend
Privates List<Property Map> - A
frontend_private
block as defined below. - frontend
Publics 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. - ip
Address String - The list of Public IP Resource IDs for this NGINX Deployment.
- location String
- The Azure Region where the NGINX Deployment exists.
- logging
Storage List<Property Map>Accounts - managed
Resource StringGroup - name String
- Name of the autoscaling profile.
- network
Interfaces List<Property Map> - A
network_interface
block as defined below. - nginx
Version String - NGINX version of the Deployment.
- resource
Group StringName - sku String
- The NGINX Deployment SKU.
- Map<String>
- A mapping of tags assigned to the NGINX Deployment.
Supporting Types
GetDeploymentAutoScaleProfile
- Max
Capacity This property is required. int - The maximum number of NGINX capacity units for this NGINX Deployment.
- Min
Capacity This property is required. int - The minimum number of NGINX capacity units for this NGINX Deployment.
- Name
This property is required. string - The name of this NGINX Deployment.
- Max
Capacity This property is required. int - The maximum number of NGINX capacity units for this NGINX Deployment.
- Min
Capacity This property is required. int - The minimum number of NGINX capacity units for this NGINX Deployment.
- Name
This property is required. string - The name of this NGINX Deployment.
- max
Capacity This property is required. Integer - The maximum number of NGINX capacity units for this NGINX Deployment.
- min
Capacity This property is required. Integer - The minimum number of NGINX capacity units for this NGINX Deployment.
- name
This property is required. String - The name of this NGINX Deployment.
- max
Capacity This property is required. number - The maximum number of NGINX capacity units for this NGINX Deployment.
- min
Capacity This property is required. number - The minimum number of NGINX capacity units for this NGINX Deployment.
- name
This property is required. string - The name of this NGINX Deployment.
- max_
capacity This property is required. int - The maximum number of NGINX capacity units for this NGINX Deployment.
- min_
capacity This property is required. int - The minimum number of NGINX capacity units for this NGINX Deployment.
- name
This property is required. str - The name of this NGINX Deployment.
- max
Capacity This property is required. Number - The maximum number of NGINX capacity units for this NGINX Deployment.
- min
Capacity This property is required. Number - The minimum number of NGINX capacity units for this NGINX Deployment.
- name
This property is required. String - The name of this NGINX Deployment.
GetDeploymentFrontendPrivate
- Allocation
Method This property is required. string - The method of allocating the private IP to the NGINX Deployment.
- Ip
Address This property is required. string - The list of Public IP Resource IDs for this NGINX Deployment.
- Subnet
Id This property is required. string - The subnet resource ID of the NGINX Deployment.
- Allocation
Method This property is required. string - The method of allocating the private IP to the NGINX Deployment.
- Ip
Address This property is required. string - The list of Public IP Resource IDs for this NGINX Deployment.
- Subnet
Id This property is required. string - The subnet resource ID of the NGINX Deployment.
- allocation
Method This property is required. String - The method of allocating the private IP to the NGINX Deployment.
- ip
Address This property is required. String - The list of Public IP Resource IDs for this NGINX Deployment.
- subnet
Id This property is required. String - The subnet resource ID of the NGINX Deployment.
- allocation
Method This property is required. string - The method of allocating the private IP to the NGINX Deployment.
- ip
Address This property is required. string - The list of Public IP Resource IDs for this NGINX Deployment.
- subnet
Id This property is required. string - The subnet resource ID of the NGINX Deployment.
- allocation_
method This property is required. str - The method of allocating the private IP to the NGINX Deployment.
- ip_
address This property is required. str - The list of Public IP Resource IDs for this NGINX Deployment.
- subnet_
id This property is required. str - The subnet resource ID of the NGINX Deployment.
- allocation
Method This property is required. String - The method of allocating the private IP to the NGINX Deployment.
- ip
Address This property is required. String - The list of Public IP Resource IDs for this NGINX Deployment.
- subnet
Id This property is required. String - The subnet resource ID of the NGINX Deployment.
GetDeploymentFrontendPublic
- Ip
Addresses This property is required. List<string> - The list of Public IP Resource IDs for this NGINX Deployment.
- Ip
Addresses This property is required. []string - The list of Public IP Resource IDs for this NGINX Deployment.
- ip
Addresses This property is required. List<String> - The list of Public IP Resource IDs for this NGINX Deployment.
- ip
Addresses This property is required. string[] - The list of Public IP Resource IDs for this NGINX Deployment.
- ip_
addresses This property is required. Sequence[str] - The list of Public IP Resource IDs for this NGINX Deployment.
- ip
Addresses This property is required. List<String> - The list of Public IP Resource IDs for this NGINX Deployment.
GetDeploymentIdentity
- Identity
Ids This property is required. List<string> - List of identities attached to the NGINX Deployment.
- Principal
Id This property is required. string - Tenant
Id This property is required. string - Type
This property is required. string - Type of identity attached to the NGINX Deployment.
- Identity
Ids This property is required. []string - List of identities attached to the NGINX Deployment.
- Principal
Id This property is required. string - Tenant
Id This property is required. string - Type
This property is required. string - Type of identity attached to the NGINX Deployment.
- identity
Ids This property is required. List<String> - List of identities attached to the NGINX Deployment.
- principal
Id This property is required. String - tenant
Id This property is required. String - type
This property is required. String - Type of identity attached to the NGINX Deployment.
- identity
Ids This property is required. string[] - List of identities attached to the NGINX Deployment.
- principal
Id This property is required. string - tenant
Id This property is required. string - type
This property is required. string - Type of identity attached to the NGINX Deployment.
- identity_
ids This property is required. Sequence[str] - List of identities attached to the NGINX Deployment.
- principal_
id This property is required. str - tenant_
id This property is required. str - type
This property is required. str - Type of identity attached to the NGINX Deployment.
- identity
Ids This property is required. List<String> - List of identities attached to the NGINX Deployment.
- principal
Id This property is required. String - tenant
Id This property is required. String - type
This property is required. String - Type of identity attached to the NGINX Deployment.
GetDeploymentLoggingStorageAccount
- Container
Name This property is required. string - Name
This property is required. string - The name of this NGINX Deployment.
- Container
Name This property is required. string - Name
This property is required. string - The name of this NGINX Deployment.
- container
Name This property is required. String - name
This property is required. String - The name of this NGINX Deployment.
- container
Name This property is required. string - name
This property is required. string - The name of this NGINX Deployment.
- container_
name This property is required. str - name
This property is required. str - The name of this NGINX Deployment.
- container
Name This property is required. String - name
This property is required. String - The name of this NGINX Deployment.
GetDeploymentNetworkInterface
- Subnet
Id This property is required. string - The subnet resource ID of the NGINX Deployment.
- Subnet
Id This property is required. string - The subnet resource ID of the NGINX Deployment.
- subnet
Id This property is required. String - The subnet resource ID of the NGINX Deployment.
- subnet
Id This property is required. string - The subnet resource ID of the NGINX Deployment.
- subnet_
id This property is required. str - The subnet resource ID of the NGINX Deployment.
- subnet
Id This property is required. 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.