azure-native-v2.network.PrivateZone
Explore with Pulumi AI
Describes a Private DNS zone. Azure REST API version: 2020-06-01. Prior API version in Azure Native 1.x: 2020-06-01.
Other available API versions: 2024-06-01.
Create PrivateZone Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PrivateZone(name: string, args: PrivateZoneArgs, opts?: CustomResourceOptions);
@overload
def PrivateZone(resource_name: str,
args: PrivateZoneArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PrivateZone(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
location: Optional[str] = None,
private_zone_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewPrivateZone(ctx *Context, name string, args PrivateZoneArgs, opts ...ResourceOption) (*PrivateZone, error)
public PrivateZone(string name, PrivateZoneArgs args, CustomResourceOptions? opts = null)
public PrivateZone(String name, PrivateZoneArgs args)
public PrivateZone(String name, PrivateZoneArgs args, CustomResourceOptions options)
type: azure-native:network:PrivateZone
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. PrivateZoneArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. PrivateZoneArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. PrivateZoneArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. PrivateZoneArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. PrivateZoneArgs - 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 privateZoneResource = new AzureNative.Network.PrivateZone("privateZoneResource", new()
{
ResourceGroupName = "string",
Location = "string",
PrivateZoneName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := network.NewPrivateZone(ctx, "privateZoneResource", &network.PrivateZoneArgs{
ResourceGroupName: "string",
Location: "string",
PrivateZoneName: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var privateZoneResource = new PrivateZone("privateZoneResource", PrivateZoneArgs.builder()
.resourceGroupName("string")
.location("string")
.privateZoneName("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
private_zone_resource = azure_native.network.PrivateZone("privateZoneResource",
resource_group_name=string,
location=string,
private_zone_name=string,
tags={
string: string,
})
const privateZoneResource = new azure_native.network.PrivateZone("privateZoneResource", {
resourceGroupName: "string",
location: "string",
privateZoneName: "string",
tags: {
string: "string",
},
});
type: azure-native:network:PrivateZone
properties:
location: string
privateZoneName: string
resourceGroupName: string
tags:
string: string
PrivateZone 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 PrivateZone resource accepts the following input properties:
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- Location
Changes to this property will trigger replacement.
- The Azure Region where the resource lives
- Private
Zone Name Changes to this property will trigger replacement.
- The name of the Private DNS zone (without a terminating dot).
- Dictionary<string, string>
- Resource tags.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- Location
Changes to this property will trigger replacement.
- The Azure Region where the resource lives
- Private
Zone Name Changes to this property will trigger replacement.
- The name of the Private DNS zone (without a terminating dot).
- map[string]string
- Resource tags.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- location
Changes to this property will trigger replacement.
- The Azure Region where the resource lives
- private
Zone Name Changes to this property will trigger replacement.
- The name of the Private DNS zone (without a terminating dot).
- Map<String,String>
- Resource tags.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- location
Changes to this property will trigger replacement.
- The Azure Region where the resource lives
- private
Zone Name Changes to this property will trigger replacement.
- The name of the Private DNS zone (without a terminating dot).
- {[key: string]: string}
- Resource tags.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- location
Changes to this property will trigger replacement.
- The Azure Region where the resource lives
- private_
zone_ name Changes to this property will trigger replacement.
- The name of the Private DNS zone (without a terminating dot).
- Mapping[str, str]
- Resource tags.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- location
Changes to this property will trigger replacement.
- The Azure Region where the resource lives
- private
Zone Name Changes to this property will trigger replacement.
- The name of the Private DNS zone (without a terminating dot).
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivateZone resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Id string - Private zone internal Id
- Max
Number doubleOf Record Sets - The maximum number of record sets that can be created in this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- Max
Number doubleOf Virtual Network Links - The maximum number of virtual networks that can be linked to this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- Max
Number doubleOf Virtual Network Links With Registration - The maximum number of virtual networks that can be linked to this Private DNS zone with registration enabled. This is a read-only property and any attempt to set this value will be ignored.
- Name string
- The name of the resource
- Number
Of doubleRecord Sets - The current number of record sets in this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- Number
Of doubleVirtual Network Links - The current number of virtual networks that are linked to this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- Number
Of doubleVirtual Network Links With Registration - The current number of virtual networks that are linked to this Private DNS zone with registration enabled. This is a read-only property and any attempt to set this value will be ignored.
- Provisioning
State string - The provisioning state of the resource. This is a read-only property and any attempt to set this value will be ignored.
- Type string
- The type of the resource. Example - 'Microsoft.Network/privateDnsZones'.
- Etag string
- The ETag of the zone.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Id string - Private zone internal Id
- Max
Number float64Of Record Sets - The maximum number of record sets that can be created in this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- Max
Number float64Of Virtual Network Links - The maximum number of virtual networks that can be linked to this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- Max
Number float64Of Virtual Network Links With Registration - The maximum number of virtual networks that can be linked to this Private DNS zone with registration enabled. This is a read-only property and any attempt to set this value will be ignored.
- Name string
- The name of the resource
- Number
Of float64Record Sets - The current number of record sets in this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- Number
Of float64Virtual Network Links - The current number of virtual networks that are linked to this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- Number
Of float64Virtual Network Links With Registration - The current number of virtual networks that are linked to this Private DNS zone with registration enabled. This is a read-only property and any attempt to set this value will be ignored.
- Provisioning
State string - The provisioning state of the resource. This is a read-only property and any attempt to set this value will be ignored.
- Type string
- The type of the resource. Example - 'Microsoft.Network/privateDnsZones'.
- Etag string
- The ETag of the zone.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Id String - Private zone internal Id
- max
Number DoubleOf Record Sets - The maximum number of record sets that can be created in this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- max
Number DoubleOf Virtual Network Links - The maximum number of virtual networks that can be linked to this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- max
Number DoubleOf Virtual Network Links With Registration - The maximum number of virtual networks that can be linked to this Private DNS zone with registration enabled. This is a read-only property and any attempt to set this value will be ignored.
- name String
- The name of the resource
- number
Of DoubleRecord Sets - The current number of record sets in this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- number
Of DoubleVirtual Network Links - The current number of virtual networks that are linked to this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- number
Of DoubleVirtual Network Links With Registration - The current number of virtual networks that are linked to this Private DNS zone with registration enabled. This is a read-only property and any attempt to set this value will be ignored.
- provisioning
State String - The provisioning state of the resource. This is a read-only property and any attempt to set this value will be ignored.
- type String
- The type of the resource. Example - 'Microsoft.Network/privateDnsZones'.
- etag String
- The ETag of the zone.
- id string
- The provider-assigned unique ID for this managed resource.
- internal
Id string - Private zone internal Id
- max
Number numberOf Record Sets - The maximum number of record sets that can be created in this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- max
Number numberOf Virtual Network Links - The maximum number of virtual networks that can be linked to this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- 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. This is a read-only property and any attempt to set this value will be ignored.
- name string
- The name of the resource
- number
Of numberRecord Sets - The current number of record sets in this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- number
Of numberVirtual Network Links - The current number of virtual networks that are linked to this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- number
Of numberVirtual Network Links With Registration - The current number of virtual networks that are linked to this Private DNS zone with registration enabled. This is a read-only property and any attempt to set this value will be ignored.
- provisioning
State string - The provisioning state of the resource. This is a read-only property and any attempt to set this value will be ignored.
- type string
- The type of the resource. Example - 'Microsoft.Network/privateDnsZones'.
- etag string
- The ETag of the zone.
- id str
- The provider-assigned unique ID for this managed resource.
- internal_
id str - Private zone internal Id
- max_
number_ floatof_ record_ sets - The maximum number of record sets that can be created in this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- max_
number_ floatof_ virtual_ network_ links - The maximum number of virtual networks that can be linked to this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- 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. This is a read-only property and any attempt to set this value will be ignored.
- name str
- The name of the resource
- number_
of_ floatrecord_ sets - The current number of record sets in this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- number_
of_ floatvirtual_ network_ links - The current number of virtual networks that are linked to this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- number_
of_ floatvirtual_ network_ links_ with_ registration - The current number of virtual networks that are linked to this Private DNS zone with registration enabled. This is a read-only property and any attempt to set this value will be ignored.
- provisioning_
state str - The provisioning state of the resource. This is a read-only property and any attempt to set this value will be ignored.
- type str
- The type of the resource. Example - 'Microsoft.Network/privateDnsZones'.
- etag str
- The ETag of the zone.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Id String - Private zone internal Id
- max
Number NumberOf Record Sets - The maximum number of record sets that can be created in this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- max
Number NumberOf Virtual Network Links - The maximum number of virtual networks that can be linked to this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- 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. This is a read-only property and any attempt to set this value will be ignored.
- name String
- The name of the resource
- number
Of NumberRecord Sets - The current number of record sets in this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- number
Of NumberVirtual Network Links - The current number of virtual networks that are linked to this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- number
Of NumberVirtual Network Links With Registration - The current number of virtual networks that are linked to this Private DNS zone with registration enabled. This is a read-only property and any attempt to set this value will be ignored.
- provisioning
State String - The provisioning state of the resource. This is a read-only property and any attempt to set this value will be ignored.
- type String
- The type of the resource. Example - 'Microsoft.Network/privateDnsZones'.
- etag String
- The ETag of the zone.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:PrivateZone privatezone1.com /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0