locked
Could not find member 'metadata' on object of type 'DeploymentParameterDefinition'. Path 'properties.parameters.factoryName.metadata RRS feed

  • Question

  • Hello techies,

    I am trying to deploy ARM template for ADF using C# code.

    When it try to deploy it gives an below error :

    "The request content was invalid and could not be deserialized: 'Could not find member 'metadata' on object of type 'DeploymentParameterDefinition'. Path 'properties.parameters.factoryName.metadata' "

    Below is my parameter.json file :

    {
      "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
      "contentVersion": "1.0.0.0",
      "parameters": {
        "factoryName": {
          "type": "string",
          "metadata": { "comments": "Data Factory Name" },
          "defaultValue": ""
        },
        "CIDnaKV_properties_typeProperties_baseUrl": {
          "type": "string",
          "defaultValue": ""
        },
        "Audit_properties_typeProperties_connectionString_secretName": {
          "type": "string",
          "defaultValue": ""
        },
        "EDW_properties_typeProperties_connectionString_secretName": {
          "type": "string",
          "defaultValue": ""
        },
        "Mart_properties_typeProperties_connectionString_secretName": {
          "type": "string",
          "defaultValue": ""
        }
      }
    }

    Could you please guys look into it that what am doing wrong here?

    Thanks in Advance.


    Ramandeep

    Thursday, March 5, 2020 7:31 AM

All replies

  • Hi Ramandeep,

    Can you try removing "metadata" field from your JSON and deploying ?

    Thursday, March 5, 2020 10:19 AM
  • Hi Chirag,

    Thanks for update.

    I tried your suggestion and remove "metadata" from json file and tried to deploy it but again it gives me an error as below :

    " The request content was invalid and could not be deserialized: 'Could not find member  ''metadata' on object of type 'DeploymentParameterDefinition'. Path 'properties.parameters.factoryName.metadata "


    Ramandeep

    Friday, March 6, 2020 6:49 AM
  • Hi Ramandeep,

    Sorry for the delayed response. 

    For a deeper investigation and immediate assistance on this issue, if you have a support plan you may file a support ticket, else could you please send an email to AzCommunity@Microsoft.com with the below details, so that we can create a one-time-free support ticket for you to work closely on this matter. 

    Thread URL: https://social.msdn.microsoft.com/Forums/en-US/edd2ee60-c252-4a0f-a608-dd41ea969bc2/could-not-find-member-metadata-on-object-of-type-deploymentparameterdefinition-path?forum=AzureDataFactory
    Subscription ID: <your subscription id here>

    Please keep the subject of the mail as "Attn:chmishr".

    Please let me know once you have done the same

    Tuesday, March 10, 2020 9:47 AM
  • Hi Ramandeep,

    We haven't heard back from you. Did you get a chance to open a support ticket?

    Friday, March 20, 2020 7:09 AM
  • Hey Ramandeep,

    Since we haven't heard from you in quite some time, I will assume that you found a resolution. If so, please share it here with the community.

    Monday, March 30, 2020 4:34 AM
  • Hello Ramandeep , 

    Quick thing while reviewing the paramter.json 

    I see that 

        "Audit_properties_typeProperties_connectionString_secretName": {
          "type": "string",
          "defaultValue": ""
        },
        "EDW_properties_typeProperties_connectionString_secretName": {
          "type": "string",
          "defaultValue": ""
        },
        "Mart_properties_typeProperties_connectionString_secretName": {
          "type": "string",
          "defaultValue": ""
        }

    Can you please try with "type":"secureString" ? I think that should do the trick .


    Thanks Himanshu
    ================
    If you think my answer helped you , please click "mark as answer " , this will be help other community members to get to the resolution faster
    Alone, we can do so little; together, we can do so much

    Monday, June 1, 2020 9:46 PM