Azure / azure-libraries-for-java

Azure Management Libraries for Java
https://docs.microsoft.com/en-us/java/azure/
MIT License
94 stars 98 forks source link

Private Azure Dns Zone #1276

Open nirco950 opened 4 years ago

nirco950 commented 4 years ago

Hi I could not find in the Azure java SDK how to get the azure private dns zones The dnsZone is just about the public dns

is there a way to run queries on the private zones in similar to the public dns zones via java SDK?

thanks!

weidongxu-microsoft commented 4 years ago

Private dns is available as Fluent Lite https://mvnrepository.com/artifact/com.microsoft.azure.privatedns.v2018_09_01/azure-mgmt-privatedns

or new Fluent Premium in preview https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/resourcemanager

nirco950 commented 4 years ago

Can I get it under the azure resources (given subscription)?

there is any sample how to use private dns zones?

weidongxu-microsoft commented 4 years ago

You can get it under Azure if you uses the preview https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/resourcemanager

Sample https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/privatedns/samples/ManagePrivateDns.java