ARM Template deployment:Resource group scope. The request content was invalid and could not be deserialized: Could not find member 'name' on object of type Template. Path properties.template.name, line 1, position 34.

Sahu, Divya 106 Reputation points
2022-02-03T17:20:47.01+00:00

I am trying to build a release pipeline that builds the artifact for the workflow definition and I am getting this error:

The request content was invalid and could not be deserialized: 'Could not find member 'name' on object of type 'Template'. Path 'properties.template.name', line 1, position 34.'.

This is my template:

{
"name": "CosmosDb_Redlight_LS",
"properties": {
"type": "CosmosDb",
"typeProperties": {
"connectionString":"AccountEndpoint=https://cosmosdb-np-digital-emails-orders-cert.documents.azure.com:443/;
AccountKey= #######################################;
Database=FinalOrder"
},
"connectVia": {
"referenceName": "AutoResolveIntegrationRuntime",
"type": "IntegrationRuntimeReference"
}
}
}

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,437 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,478 questions
{count} votes

Accepted answer
  1. MartinJaffer-MSFT 26,011 Reputation points
    2022-02-07T17:46:29.87+00:00

    @Sahu, Divya While it may be possible to do things this way, it is more work than it needs to be, kind of like if you needed some oil for your car you made a deal with the parts manufacturer instead of just going to the local hardware store.

    The release pipeline is generally for taking one Factory / Workspace and copying all its contents to another Factory / Workspace.
    The easier way to add a linked service is just go go use the visual authoring tool / portal. This way the Linked Service gets written into your repo properly.

    By directly using ARM template, you would bypass your repo, and cause the repository and Factory/Workspace to become out of sync.

    Does this make sense?

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful