Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create a bot after disabling app insights during publish #6702

Closed
2 of 8 tasks
jameslew opened this issue Apr 5, 2021 · 1 comment · Fixed by #6734
Closed
2 of 8 tasks

Cannot create a bot after disabling app insights during publish #6702

jameslew opened this issue Apr 5, 2021 · 1 comment · Fixed by #6734
Labels
ABS Handoff Type: Bug Something isn't working

Comments

@jameslew
Copy link

jameslew commented Apr 5, 2021

Describe the bug

When I create a publish profile, I'm given the option of disabling several resources. If I disable App Insights, the logic seems to try to do something with app insights anyway and then fails.

Version

Version: 1.4.0-nightly.230964.e5e5020
Electron: 8.2.4
Chrome: 80.0.3987.165
NodeJS: 12.13.0
V8: 8.0.426.27-electron.0

Browser

  • Electron distribution
  • Chrome
  • Safari
  • Firefox
  • Edge

OS

  • macOS
  • Windows
  • Ubuntu

To Reproduce

Steps to reproduce the behavior:

  1. Create bot in composer
  2. Create new publish profile for bot
  3. Uncheck all the optional services
  4. Proceed with publish - get error

Expected behavior

Publish to be successful with optional resources unchecked.

Screenshots

image

Additional context

@jameslew jameslew added Type: Bug Something isn't working Needs-triage A new issue that require triage labels Apr 5, 2021
@hibrenda
Copy link
Contributor

hibrenda commented Apr 6, 2021

As @luhan2017 suggest in the repro step, if I enable the appingishts option during the publish, I got following error.
But check in azure portal, sounds like the appinsights has been created. (By the way I give a resource name which is different from resource group name)
image

image

provision log error :
"Deploying Bot Resource ...",
"Deploying Application Insights Resource ...",
"> Linking Application Insights settings to Bot Service ...",
"{"stack":"Error: LinkedProperty /subscriptions/3e71927d-2914-4c36-bc5d-6369d1f42457/resourceGroups/bb-composer-dev/providers/microsoft.insights/components/test2appinsights/api does not apply to current resource.\n at new RestError2 (C:\\Users\\yiba\\AppData\\Local\\Programs\\Bot Framework Composer\\resources\\app.asar.unpacked\\extensions\\azurePublish\\dist\\extension.js:159263:26)\n at C:\\Users\\yiba\\AppData\\Local\\Programs\\Bot Framework Composer\\resources\\app.asar.unpacked\\extensions\\azurePublish\\dist\\extension.js:160184:27\n at async AzureResourceMananger.connectAppInsightsToBotService (C:\\Users\\yiba\\AppData\\Local\\Programs\\Bot Framework Composer\\resources\\app.asar.unpacked\\extensions\\azurePublish\\dist\\extension.js:253877:35)\n at async BotProjectProvision.create (C:\\Users\\yiba\\AppData\\Local\\Programs\\Bot Framework Composer\\resources\\app.asar.unpacked\\extensions\\azurePublish\\dist\\extension.js:254452:15)\n at async AzurePublisher.asyncProvision (C:\\Users\\yiba\\AppData\\Local\\Programs\\Bot Framework Composer\\resources\\app.asar.unpacked\\extensions\\azurePublish\\dist\\extension.js:254899:36)","message":"LinkedProperty /subscriptions/3e71927d-2914-4c36-bc5d-6369d1f42457/resourceGroups/bb-composer-dev/providers/microsoft.insights/components/test2appinsights/api does not apply to current resource.","code":"LinkedProperty /subscriptions/3e71927d-2914-4c36-bc5d-6369d1f42457/resourceGroups/bb-composer-dev/providers/microsoft.insights/components/test2appinsights/api does not apply to current resource.","statusCode":400,"request":{"body":"{\"name\":\"bb-composer-dev-provision-1617694996360\",\"linkedReadProperties\":[\"/subscriptions/3e71927d-2914-4c36-bc5d-6369d1f42457/resourceGroups/bb-composer-dev/providers/microsoft.insights/components/test2appinsights/api\",\"/subscriptions/3e71927d-2914-4c36-bc5d-6369d1f42457/resourceGroups/bb-composer-dev/providers/microsoft.insights/components/test2appinsights/agentconfig\"],\"linkedWriteProperties\":[\"/subscriptions/3e71927d-2914-4c36-bc5d-6369d1f42457/resourceGroups/bb-composer-dev/providers/microsoft.insights/components/test2appinsights/annotations\"]}"},"response":{"body":"{\"code\":\"LinkedProperty /subscriptions/3e71927d-2914-4c36-bc5d-6369d1f42457/resourceGroups/bb-composer-dev/providers/microsoft.insights/components/test2appinsights/api does not apply to current resource.\",\"message\":\"LinkedProperty /subscriptions/3e71927d-2914-4c36-bc5d-6369d1f42457/resourceGroups/bb-composer-dev/providers/microsoft.insights/components/test2appinsights/api does not apply to current resource.\",\"innererror\":{\"diagnosticcontext\":\"8d14aafb-e1ca-4a69-9a79-ca6df8a54a89\",\"time\":\"2021-04-06T07:43:19.8134751Z\"}}"},"body":{"message":"LinkedProperty /subscriptions/3e71927d-2914-4c36-bc5d-6369d1f42457/resourceGroups/bb-composer-dev/providers/microsoft.insights/components/test2appinsights/api does not apply to current resource.","code":"LinkedProperty /subscriptions/3e71927d-2914-4c36-bc5d-6369d1f42457/resourceGroups/bb-composer-dev/providers/microsoft.insights/components/test2appinsights/api does not apply to current resource."}}",
"{"name":"CONNECT_APP_INSIGHT_ERROR","message":"Error - LinkedProperty /subscriptions/3e71927d-2914-4c36-bc5d-6369d1f42457/resourceGroups/bb-composer-dev/providers/microsoft.insights/components/test2appinsights/api does not apply to current resource.","stack":"Error\n at new CustomizeError (C:\\Users\\yiba\\AppData\\Local\\Programs\\Bot Framework Composer\\resources\\app.asar.unpacked\\extensions\\azurePublish\\dist\\extension.js:252923:25)\n at createCustomizeError (C:\\Users\\yiba\\AppData\\Local\\Programs\\Bot Framework Composer\\resources\\app.asar.unpacked\\extensions\\azurePublish\\dist\\extension.js:252928:10)\n at AzureResourceMananger.connectAppInsightsToBotService (C:\\Users\\yiba\\AppData\\Local\\Programs\\Bot Framework Composer\\resources\\app.asar.unpacked\\extensions\\azurePublish\\dist\\extension.js:253924:13)"}",
"CONNECT_APP_INSIGHT_ERROR - Error - LinkedProperty /subscriptions/3e71927d-2914-4c36-bc5d-6369d1f42457/resourceGroups/bb-composer-dev/providers/microsoft.insights/components/test2appinsights/api does not apply to current resource.\n detail message can see provision.test2.log in your bot folder"
]

@luhan2017 luhan2017 removed the Needs-triage A new issue that require triage label Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ABS Handoff Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants