def check_name_availability(account_name, custom_headers:nil)
      response = check_name_availability_async(account_name, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def check_name_availability(account_name, custom_headers:nil)
      response = check_name_availability_async(account_name, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Checks that the storage account name is valid and is not already in use.

 @param account_name [StorageAccountCheckNameAvailabilityParameters] The name
 of the storage account within the specified resource group. Storage account
 names must be between 3 and 24 characters in length and use numbers and
 lower-case letters only.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [CheckNameAvailabilityResult] operation results.