Closed ChenTanyi closed 4 years ago
Current workaround: https://github.com/Azure/azure-sdk-for-java/pull/11813
DnsZone dnsZone = azure.dnsZones().define(domainName)
.withExistingResourceGroup(rgName)
.create();
AppServiceDomain domain = azure.appServiceDomains().define(domainName)
.withExistingResourceGroup(rgName)
...
.create();
domain.inner().withDnsZoneId(dnsZone.id());
domain.update().apply();
App service will no longer create dns zone with domain in default. We need to fix it in domain creation (default or existing).