/// <summary> /// Checks whether a domain name in the cloudapp.net zone is available for use. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// The location of the domain name. /// </param> /// <param name='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]$. /// </param> public static DnsNameAvailabilityResult CheckDnsNameAvailability(this INetworkClient operations, string location, string domainNameLabel = default(string)) { return(operations.CheckDnsNameAvailabilityAsync(location, domainNameLabel).GetAwaiter().GetResult()); }