Getting error while connecting to App config using ARM Template and Terraform for a BOT Application

Hiral Jariwala 20 Reputation points
2025-02-13T04:40:27.3966667+00:00

Getting below error after deployment of BOT Service using ARM Template and Terrform. Could anyone please let us know for any possible resolution or root cause of this error as soon as possible? Any help would be really appreciated!

Error description:

isFile(): false

WARNING: This command is implicitly deprecated because command group 'group deployment' is deprecated and will be removed in a future release. Use 'deployment group' instead.

ERROR: {"code": "InvalidRequestContent", "message": "The request content was invalid and could not be deserialized: 'Could not find member 'APPINSIGHTS_INSTRUMENTATIONKEY' on object of type 'Template'. Path 'properties.template.APPINSIGHTS_INSTRUMENTATIONKEY', line 6, position 35.'."}

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,579 questions
Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
925 questions
Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
255 questions
Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
938 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,703 questions
{count} votes

Accepted answer
  1. Madugula Jahnavi 410 Reputation points Microsoft External Staff
    2025-03-17T17:09:29.3666667+00:00

    Hiral Jariwala,

    Firstly, the warning comes with the CLI deployment command you are using. Use "az deployment group" CLI command along with the required arguments for successful bot service deployment.

    Refer ARM templates MS Doc for more relevant detailed procedure of deploying it.

    Now, coming to the issue it looks that the APPINSIGHTS_INSTRUMENTATIONKEY property has not been correctly configured in the "properties" block of a bot resource provider. It should be in the below given format.

    "properties": {
            "applicationInsights": {
              "instrumentationKey": "[parameters('appInsightsInstrumentationKey')]"
            }
          }
    
    

    You can also go through with this Github document for Bot app complete ARM structure.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.