Open williamhbell opened 1 week ago
Thank you for opening this issue, we will look into it.
Hi @williamhbell Find similar issue https://github.com/Azure/azure-cli/issues/15176. | ||
---|---|---|
Issue title | "az functionapp create --app-insights" doesn't link Application Insights | |
Create time | 2020-09-16 | |
Comment number | 10 |
Possible solution: The issue is caused by the application insights not using the specified resource group. When an Azure function is created, the CLI attempts to create the application insights in the default resource group rather than within the resource group specified. If the user has the right to create the application insights in the specified resource group, but not in the default resource group the command fails. The solution is to manually create the application insights with the az monitor app-insights component create command.
Please confirm if this resolves your issue.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @SameergMS, @yairgil.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AnatoliB, @Francisco-Gamino, @shreyabatra4.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @SameergMS, @yairgil.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AnatoliB, @Francisco-Gamino, @shreyabatra4.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AnatoliB, @Francisco-Gamino, @shreyabatra4.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @SameergMS, @yairgil.
Describe the bug
When an Azure function is created, the CLI attempts to create the application insights in the default resource group rather than within the resource group specified. If the user has the right to create the application insights in the specified resource group, but not in the default resource group the command fails with:
Running the
functionapp create
command with--debug
:The application insights can be manually created with
The issue mentioned above is caused by the application insights not using the specified resource group.
Related command
where the App Services Plan is a B3 Linux plan and the function version is 4.
Errors
Running the
functionapp create
command with--debug
:Issue script & Debug output
Command:
Error message:
Source of error:
Expected behavior
The application insights should be created in the resource group that is specified when the function is created.
Environment Summary
Additional context
No response