CmdID / az / az monitor / az monitor app-insights / az monitor app-insights api-key
az monitor app-insights api-key create
Create an API Key of an Application Insights component. Azure CLI extensions reference
4 options Its page in the Azure CLI extensions reference
Options
--api-keyName of the API key to create.--app, -aGUID, app name, or fully-qualified Azure resource name of Application Insights component.--read-propertiesA space-separated list of names of read Roles for this API key to inherit.--write-propertiesA space-separated list of names of write Roles for this API key to inherit.