Search code examples
azureazure-application-insightsazure-cli

Creating application insights with azure cli


I would like to create application insights using AZURE CLI. I can't find any documentation on this topic. Is it possible?


Solution

  • The link provided by Rohit works

    az resource create \
        --resource-group $RESOURCE_GROUP \
        --resource-type "Microsoft.Insights/components" \
        --name $NAMESPACE_PREFIX-appinsights \
        --location $PRIMARY_LOCATION \
        --properties '{"Application_Type":"web"}'
    

    https://github.com/Azure/azure-cli/issues/5543#issuecomment-365001620