Zone
Enables you to manage Private DNS zones within Azure DNS. These zones are hosted on Azure’s name servers.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West US",
});
var exampleZone = new Azure.PrivateDns.Zone("exampleZone", new Azure.PrivateDns.ZoneArgs
{
ResourceGroupName = exampleResourceGroup.Name,
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/privatedns"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West US"),
})
if err != nil {
return err
}
_, err = privatedns.NewZone(ctx, "exampleZone", &privatedns.ZoneArgs{
ResourceGroupName: exampleResourceGroup.Name,
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West US")
example_zone = azure.privatedns.Zone("exampleZone", resource_group_name=example_resource_group.name)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West US"});
const exampleZone = new azure.privatedns.Zone("exampleZone", {resourceGroupName: exampleResourceGroup.name});Create a Zone Resource
new Zone(name: string, args: ZoneArgs, opts?: CustomResourceOptions);def Zone(resource_name, opts=None, name=None, resource_group_name=None, tags=None, __props__=None);public Zone(string name, ZoneArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ZoneArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ZoneArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZoneArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Zone Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Zone resource accepts the following input properties:
- Resource
Group stringName Specifies the resource group where the resource exists. Changing this forces a new resource to be created.
- Name string
The name of the Private DNS Zone. Must be a valid domain name.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Resource
Group stringName Specifies the resource group where the resource exists. Changing this forces a new resource to be created.
- Name string
The name of the Private DNS Zone. Must be a valid domain name.
- map[string]string
A mapping of tags to assign to the resource.
- resource
Group stringName Specifies the resource group where the resource exists. Changing this forces a new resource to be created.
- name string
The name of the Private DNS Zone. Must be a valid domain name.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- resource_
group_ strname Specifies the resource group where the resource exists. Changing this forces a new resource to be created.
- name str
The name of the Private DNS Zone. Must be a valid domain name.
- Dict[str, str]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Zone resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Max
Number intOf Record Sets The maximum number of record sets that can be created in this Private DNS zone.
- Max
Number intOf Virtual Network Links The maximum number of virtual networks that can be linked to this Private DNS zone.
- Max
Number intOf Virtual Network Links With Registration The maximum number of virtual networks that can be linked to this Private DNS zone with registration enabled.
- Number
Of intRecord Sets The current number of record sets in this Private DNS zone.
- Id string
- The provider-assigned unique ID for this managed resource.
- Max
Number intOf Record Sets The maximum number of record sets that can be created in this Private DNS zone.
- Max
Number intOf Virtual Network Links The maximum number of virtual networks that can be linked to this Private DNS zone.
- Max
Number intOf Virtual Network Links With Registration The maximum number of virtual networks that can be linked to this Private DNS zone with registration enabled.
- Number
Of intRecord Sets The current number of record sets in this Private DNS zone.
- id string
- The provider-assigned unique ID for this managed resource.
- max
Number numberOf Record Sets The maximum number of record sets that can be created in this Private DNS zone.
- max
Number numberOf Virtual Network Links The maximum number of virtual networks that can be linked to this Private DNS zone.
- max
Number numberOf Virtual Network Links With Registration The maximum number of virtual networks that can be linked to this Private DNS zone with registration enabled.
- number
Of numberRecord Sets The current number of record sets in this Private DNS zone.
- id str
- The provider-assigned unique ID for this managed resource.
- max_
number_ floatof_ record_ sets The maximum number of record sets that can be created in this Private DNS zone.
- max_
number_ floatof_ virtual_ network_ links The maximum number of virtual networks that can be linked to this Private DNS zone.
- max_
number_ floatof_ virtual_ network_ links_ with_ registration The maximum number of virtual networks that can be linked to this Private DNS zone with registration enabled.
- number_
of_ floatrecord_ sets The current number of record sets in this Private DNS zone.
Look up an Existing Zone Resource
Get an existing Zone 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>, state?: ZoneState, opts?: CustomResourceOptions): Zonestatic get(resource_name, id, opts=None, max_number_of_record_sets=None, max_number_of_virtual_network_links=None, max_number_of_virtual_network_links_with_registration=None, name=None, number_of_record_sets=None, resource_group_name=None, tags=None, __props__=None);public static Zone Get(string name, Input<string> id, ZoneState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Max
Number intOf Record Sets The maximum number of record sets that can be created in this Private DNS zone.
- Max
Number intOf Virtual Network Links The maximum number of virtual networks that can be linked to this Private DNS zone.
- Max
Number intOf Virtual Network Links With Registration The maximum number of virtual networks that can be linked to this Private DNS zone with registration enabled.
- Name string
The name of the Private DNS Zone. Must be a valid domain name.
- Number
Of intRecord Sets The current number of record sets in this Private DNS zone.
- Resource
Group stringName Specifies the resource group where the resource exists. Changing this forces a new resource to be created.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Max
Number intOf Record Sets The maximum number of record sets that can be created in this Private DNS zone.
- Max
Number intOf Virtual Network Links The maximum number of virtual networks that can be linked to this Private DNS zone.
- Max
Number intOf Virtual Network Links With Registration The maximum number of virtual networks that can be linked to this Private DNS zone with registration enabled.
- Name string
The name of the Private DNS Zone. Must be a valid domain name.
- Number
Of intRecord Sets The current number of record sets in this Private DNS zone.
- Resource
Group stringName Specifies the resource group where the resource exists. Changing this forces a new resource to be created.
- map[string]string
A mapping of tags to assign to the resource.
- max
Number numberOf Record Sets The maximum number of record sets that can be created in this Private DNS zone.
- max
Number numberOf Virtual Network Links The maximum number of virtual networks that can be linked to this Private DNS zone.
- max
Number numberOf Virtual Network Links With Registration The maximum number of virtual networks that can be linked to this Private DNS zone with registration enabled.
- name string
The name of the Private DNS Zone. Must be a valid domain name.
- number
Of numberRecord Sets The current number of record sets in this Private DNS zone.
- resource
Group stringName Specifies the resource group where the resource exists. Changing this forces a new resource to be created.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- max_
number_ floatof_ record_ sets The maximum number of record sets that can be created in this Private DNS zone.
- max_
number_ floatof_ virtual_ network_ links The maximum number of virtual networks that can be linked to this Private DNS zone.
- max_
number_ floatof_ virtual_ network_ links_ with_ registration The maximum number of virtual networks that can be linked to this Private DNS zone with registration enabled.
- name str
The name of the Private DNS Zone. Must be a valid domain name.
- number_
of_ floatrecord_ sets The current number of record sets in this Private DNS zone.
- resource_
group_ strname Specifies the resource group where the resource exists. Changing this forces a new resource to be created.
- Dict[str, str]
A mapping of tags to assign to the resource.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.