azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

--ttl parameter not working

Open sbhuttan opened this issue 7 years ago • 4 comments

Getting following error while trying to create a CName with TTL parameter, using Azure CLI -

az: error: unrecognized arguments: --ttl 300
usage: az [-h] [--verbose] [--debug]
          [--output {json,jsonc,table,tsv,yaml,none}] [--query JMESPATH]
          {network} ...

Azure command used: az network dns record-set cname set-record

Version of azure-cli - 2.0.73 (latest as of 9/12)

Environment - Tried on both - Visual Studio Code and shell.azure.com.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

sbhuttan avatar Sep 12 '19 18:09 sbhuttan

@sbhuttan hello. Looks like we don't support --ttl argument for record set now. I will investage the reason and update the state later.

mmyyrroonn avatar Sep 13 '19 02:09 mmyyrroonn

Thanks for looking into this. TTL is still supported through the portal. Is support going away from portal as well? Or just not supported through CLI at this point?

sbhuttan avatar Sep 15 '19 20:09 sbhuttan

@sbhuttan I assume that CLI doesn't support this feature at this point. I cannot image any reason that this feature will go away from portal.

mmyyrroonn avatar Sep 16 '19 01:09 mmyyrroonn

Hi @sbhuttan , so. In this case, we only need to add ttl to CNAME? What about other types of DNS record? We can add it at the same time.

haroldrandom avatar Nov 02 '19 08:11 haroldrandom