1. Registry
  2. Packages
  3. Defang Providers
  4. API Docs
  5. CustomDomainRelease
Viewing docs for Defang Azure v2.12.2
published on Tuesday, Nov 17, 2026 by Defang
defang-azure logo Defang Azure
Viewing docs for Defang Azure v2.12.2
published on Tuesday, Nov 17, 2026 by Defang

    Removes a Container App’s custom domain bindings and managed certificates before the app is deleted. Created by Project.

    Create CustomDomainRelease Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CustomDomainRelease(name: string, args: CustomDomainReleaseArgs, opts?: CustomResourceOptions);
    @overload
    def CustomDomainRelease(resource_name: str,
                            args: CustomDomainReleaseArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def CustomDomainRelease(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            container_app_id: Optional[str] = None)
    func NewCustomDomainRelease(ctx *Context, name string, args CustomDomainReleaseArgs, opts ...ResourceOption) (*CustomDomainRelease, error)
    public CustomDomainRelease(string name, CustomDomainReleaseArgs args, CustomResourceOptions? opts = null)
    public CustomDomainRelease(String name, CustomDomainReleaseArgs args)
    public CustomDomainRelease(String name, CustomDomainReleaseArgs args, CustomResourceOptions options)
    
    type: defang-azure:CustomDomainRelease
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "defang-azure_custom_domain_release" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args CustomDomainReleaseArgs
    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 CustomDomainReleaseArgs
    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 CustomDomainReleaseArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CustomDomainReleaseArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CustomDomainReleaseArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var customDomainReleaseResource = new DefangAzure.CustomDomainRelease("customDomainReleaseResource", new()
    {
        ContainerAppId = "string",
    });
    
    example, err := defangazure.NewCustomDomainRelease(ctx, "customDomainReleaseResource", &defangazure.CustomDomainReleaseArgs{
    	ContainerAppId: pulumi.String("string"),
    })
    
    resource "defang-azure_custom_domain_release" "customDomainReleaseResource" {
      lifecycle {
        create_before_destroy = true
      }
      container_app_id = "string"
    }
    
    var customDomainReleaseResource = new CustomDomainRelease("customDomainReleaseResource", CustomDomainReleaseArgs.builder()
        .containerAppId("string")
        .build());
    
    custom_domain_release_resource = defang_azure.CustomDomainRelease("customDomainReleaseResource", container_app_id="string")
    
    const customDomainReleaseResource = new defang_azure.CustomDomainRelease("customDomainReleaseResource", {containerAppId: "string"});
    
    type: defang-azure:CustomDomainRelease
    properties:
        containerAppId: string
    

    CustomDomainRelease Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CustomDomainRelease resource accepts the following input properties:

    ContainerAppId string
    ARM resource ID of the Container App.
    ContainerAppId string
    ARM resource ID of the Container App.
    container_app_id string
    ARM resource ID of the Container App.
    containerAppId String
    ARM resource ID of the Container App.
    containerAppId string
    ARM resource ID of the Container App.
    container_app_id str
    ARM resource ID of the Container App.
    containerAppId String
    ARM resource ID of the Container App.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CustomDomainRelease resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CustomDomainRelease Resource

    Get an existing CustomDomainRelease 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>, opts?: CustomResourceOptions): CustomDomainRelease
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> CustomDomainRelease
    func GetCustomDomainRelease(ctx *Context, name string, id IDInput, state *CustomDomainReleaseState, opts ...ResourceOption) (*CustomDomainRelease, error)
    public static CustomDomainRelease Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static CustomDomainRelease get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingCustomDomainRelease:    type: defang-azure:CustomDomainRelease    get:      id: ${id}
    import {
      to = defang-azure_custom_domain_release.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state CustomDomainReleaseState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Package Details

    Repository
    defang-azure DefangLabs/pulumi-defang
    License
    Apache-2.0
    defang-azure logo Defang Azure
    Viewing docs for Defang Azure v2.12.2
    published on Tuesday, Nov 17, 2026 by Defang

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial