Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"parameters": {
"api-version": "2022-11-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"publicIpAddressName": "test-ip",
"parameters": {
"properties": {
"dnsSettings": {
"domainNameLabel": "dnslbl",
"domainNameLabelScope": "TenantReuse"
}
},
"location": "eastus"
}
},
"responses": {
"200": {
"body": {
"name": "testDNS-ip",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip",
"location": "eastus",
"properties": {
"provisioningState": "Succeeded",
"publicIPAddressVersion": "IPv4",
"publicIPAllocationMethod": "Dynamic",
"idleTimeoutInMinutes": 4,
"dnsSettings": {
"domainNameLabel": "dnslbl",
"domainNameLabelScope": "TenantReuse",
"fqdn": "dnslbl.hxdwgjcdfgbhgebs.eastus.sysgen.cloudapp.azure.com"
},
"ipConfiguration": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testDNS649/ipConfigurations/ipconfig1"
}
},
"type": "Microsoft.Network/publicIPAddresses"
}
},
"201": {
"body": {
"name": "testDNS-ip",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip",
"location": "eastus",
"properties": {
"provisioningState": "Succeeded",
"publicIPAddressVersion": "IPv4",
"publicIPAllocationMethod": "Dynamic",
"idleTimeoutInMinutes": 4,
"dnsSettings": {
"domainNameLabel": "dnslbl",
"domainNameLabelScope": "TenantReuse",
"fqdn": "dnslbl.hxdwgjcdfgbhgebs.eastus.sysgen.cloudapp.azure.com"
},
"ipConfiguration": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testDNS649/ipConfigurations/ipconfig1"
},
"ddosSettings": {
"protectionMode": "VirtualNetworkInherited"
}
},
"type": "Microsoft.Network/publicIPAddresses"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,30 @@
}
},
"type": "Microsoft.Network/publicIPAddresses"
},
{
"name": "ip04",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/ip04",
"location": "westus",
"properties": {
"provisioningState": "Succeeded",
"ipAddress": "40.85.154.248",
"publicIPAddressVersion": "IPv4",
"publicIPAllocationMethod": "Dynamic",
"idleTimeoutInMinutes": 4,
"dnsSettings": {
"domainNameLabel": "testlbl",
"domainNameLabelScope": "TenantReuse",
"fqdn": "testlbl.hxdwgjcdfgbhgebs.eastus.sysgen.cloudapp.azure.com"
},
"ipConfiguration": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/testLb/frontendIPConfigurations/LoadBalancerFrontEnd"
},
"ddosSettings": {
"protectionMode": "VirtualNetworkInherited"
}
},
"type": "Microsoft.Network/publicIPAddresses"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,30 @@
}
},
"type": "Microsoft.Network/publicIPAddresses"
},
{
"name": "ip02",
"id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/publicIPAddresses/ip02",
"location": "westus",
"properties": {
"provisioningState": "Succeeded",
"ipAddress": "40.85.154.248",
"publicIPAddressVersion": "IPv4",
"publicIPAllocationMethod": "Dynamic",
"idleTimeoutInMinutes": 4,
"dnsSettings": {
"domainNameLabel": "testlbl",
"domainNameLabelScope": "TenantReuse",
"fqdn": "testlbl.hxdwgjcdfgbhgebs.eastus.sysgen.cloudapp.azure.com"
},
"ipConfiguration": {
"id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/loadBalancers/testLb/frontendIPConfigurations/LoadBalancerFrontEnd"
},
"ddosSettings": {
"protectionMode": "VirtualNetworkInherited"
}
},
"type": "Microsoft.Network/publicIPAddresses"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@
},
"Create public IP address DNS": {
"$ref": "./examples/PublicIpAddressCreateDns.json"
},
"Create public IP address DNS with Domain Name Label Scope": {
"$ref": "./examples/PublicIpAddressCreateDnsWithDomainNameLabelScope.json"
}
},
"x-ms-long-running-operation": true,
Expand Down Expand Up @@ -613,6 +616,20 @@
"type": "string",
"description": "The domain name label. The concatenation of the domain name label and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system."
},
"domainNameLabelScope": {
"type": "string",
"description": "The domain name label scope. If a domain name label and a domain name label scope are specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system with a hashed value includes in FQDN.",
"enum": [
"TenantReuse",
"SubscriptionReuse",
"ResourceGroupReuse",
"NoReuse"
],
"x-ms-enum": {
"name": "PublicIpAddressDnsSettingsDomainNameLabelScope",
"modelAsString": false
}
},
"fqdn": {
"type": "string",
"description": "The Fully Qualified Domain Name of the A DNS record associated with the public IP. This is the concatenation of the domainNameLabel and the regionalized DNS zone."
Expand Down