cuddly-yacht-60692
03/12/2024, 3:47 PMprivate_dns_zone_docintel = network.PrivateZone("privateDnsZoneDocIntel",
resource_group_name=resource_group.name,
private_zone_name="privatelink.cognitiveservices.azure.com")
Gives this error:
azure-native:network:PrivateZone (privateDnsZoneDocIntel):
error: autorest/azure: Service returned an error. Status=<nil> Code="MissingRegistrationForLocation" Message="The subscription is not registered for the resource type 'privateDnsZones' in the location 'WestUS2'. Please re-register for this provider in order to have access to this location."
It doesn't make sense as clearly this resource is allowed in the regions. I've verified this with:
az provider show --namespace Microsoft.Network --query "registrationState"
I'd love some help, please! I'm clearly missing something here...
Thank you!hundreds-gpu-71155
03/12/2024, 3:49 PMhundreds-gpu-71155
03/12/2024, 3:49 PMcuddly-yacht-60692
03/12/2024, 3:51 PMhundreds-gpu-71155
03/12/2024, 3:51 PMhundreds-gpu-71155
03/12/2024, 3:51 PMcuddly-yacht-60692
03/12/2024, 3:52 PMcuddly-yacht-60692
03/12/2024, 3:58 PMhundreds-gpu-71155
03/12/2024, 4:01 PMhundreds-gpu-71155
03/12/2024, 4:01 PMcuddly-yacht-60692
03/12/2024, 4:02 PMsubnet_docintel = network.Subnet(f"subnet_docintel",
resource_group_name=resource_group.name,
virtual_network_name=virtual_network.name,
address_prefix="10.0.3.0/24",
)
docintel = cognitiveservices.Account(f"documentintelligence",
resource_group_name=resource_group.name,
kind="FormRecognizer",
sku=cognitiveservices.SkuArgs(
name="S0",
),
properties={
"publicNetworkAccess": "Disabled",
"customSubDomainName": f"tellen-{customer}-fffff"
}
)
private_dns_zone_docintel = network.PrivateZone("privateDnsZoneDocIntel",
resource_group_name=resource_group.name,
private_zone_name="<http://privatelink.cognitiveservices.azure.com|privatelink.cognitiveservices.azure.com>")
# Private Endpoint for the OpenAI instance
private_endpoint_docintel = network.PrivateEndpoint("privateEndpointDocIntel",
resource_group_name=resource_group.name,
location=resource_group.location,
private_link_service_connections=[{
"name": "docintelConnection",
"private_link_service_id": docintel.id,
"group_ids": ["account"],
}],
subnet={
"id": subnet_docintel.id,
})
# Link the Private DNS Zone to the VNet
dns_zone_vnet_link_docintel = network.VirtualNetworkLink("dnsZoneVnetLinkDocIntel",
resource_group_name=resource_group.name,
private_zone_name=private_dns_zone_docintel.private_zone_name,
virtual_network={
"id": virtual_network.id,
},
registration_enabled=False)
# Create a DNS Zone Group for the Private Endpoint
dns_zone_group_docintel = network.PrivateDnsZoneGroup("dnsZoneGroupDocIntel",
resource_group_name=resource_group.name,
private_endpoint_name=private_endpoint_docintel.name,
private_dns_zone_configs=[{
"private_dns_zone_id": private_dns_zone_docintel.id,
}])
hallowed-horse-57635
03/12/2024, 4:02 PMcuddly-yacht-60692
03/12/2024, 4:03 PMpulumi==3.109.0
pulumi_azure_native==2.30.0
hallowed-horse-57635
03/12/2024, 4:05 PMcuddly-yacht-60692
03/12/2024, 4:07 PMhallowed-horse-57635
03/12/2024, 4:08 PMcuddly-yacht-60692
03/12/2024, 4:15 PMprivate_dns_zone_docintel = network.PrivateZone("privateDnsZoneDocIntel",
resource_group_name=resource_group.name,
private_zone_name="<http://privatelink.cognitiveservices.azure.com|privatelink.cognitiveservices.azure.com>", location="global")