code: public DnsNameAvailabilityResultInner checkDnsNameAvailability(String location, String domainNameLabel) {
          return checkDnsNameAvailabilityWithServiceResponseAsync(location, domainNameLabel).toBlocking().single().body();
      }
docs: Checks whether a domain name in the cloudapp.azure.com zone is available for use.
  
  @param location The location of the domain name.
  @param domainNameLabel The domain name to be verified. It must conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the DnsNameAvailabilityResultInner object if successful.