CmdID / az / az site / az site key
az site key create
Create a site key linked to a site. Azure CLI extensions reference
4 options Its page in the Azure CLI extensions reference
Options
--site-key-name, --name, -nName of the SiteKey--site-nameName of the site to link this key to.--site-resource-idFull ARM resource ID of the site (computed automatically from --site-name).--token-expiry-dateToken expiry date in ISO 8601 format (e.g., 2026-05-01T00:00:00Z).