CmdID / az / az afd / az afd log-analytic / az afd log-analytic metric
az afd log-analytic metric list
Get log report for AFD profile Azure CLI extensions reference
1 example 8 options Its page in the Azure CLI extensions reference
Examples
LogAnalytics_GetLogAnalyticsMetrics
az afd log-analytic metric list --resource-group RG --profile-name profile1 --metrics "[clientRequestCount]" --date-time-begin 2020-11-04T04:30:00.000Z --date-time-end 2020-11-04T05:00:00.000Z --granularity PT5M --group-by "[protocol]" --custom-domains "[customdomain1.azurecdn.net,customdomain2.azurecdn.net]" --protocols "[https]"Identify--resource-groupName of resource group.--profile-nameName of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group.--metricsMetric types to include.--date-time-beginThe start datetime.--date-time-endThe end datetime.--granularityThe interval granularity.--custom-domainsThe domains to be included.--protocolsThe protocols to be included.Options
--country-or-regions, --continents, --group-by--custom-domainsThe domains to be included.--date-time-beginThe start datetime.--date-time-endThe end datetime.--granularityThe interval granularity.--metricsMetric types to include.--profile-nameName of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group.--protocolsThe protocols to be included.