Beispiel #1
0
 /// <summary>
 /// Checks whether a domain name in the cloudapp.azure.com 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 INetworkManagementClient operations, string location, string domainNameLabel)
 {
     return(operations.CheckDnsNameAvailabilityAsync(location, domainNameLabel).GetAwaiter().GetResult());
 }