I have a linked service and I am trying to change the Azure Key Vault Reference (this is the view of authoring instance)

I am using git integration and in my authoring instance I have set it up using a key vault reference however, when I deploy this it changes it to using password (see below).

I have added the arm-template-parameters-definition.json file so it allows me to override certain values but for some reason its not keeping the key vault reference.
"Microsoft.DataFactory/factories/linkedServices": {
"*": {
"properties": {
"typeProperties": {
"baseUrl": "=",
"serviceEndpoint": "=",
"credential": {
"referenceName": "="
},
"password": {
"type": "AzureKeyVaultSecret",
"store": {
"referenceName": "=",
"type": "LinkedServiceReference"
}
}
},
"connectVia": {
"referenceName": "="
}
}
}
Just to add to this with the deployed instance, it changes the inputs to secure string also which is a tad bit annoying as I can't verify transforms are happening correctly. The JSON for that linked resource looks like this. It knows its an AzureKeyVaultSecret but for some reason its resetting all the inputs.
{
"name": "FooBar",
"type": "Microsoft.DataFactory/factories/linkedservices",
"properties": {
"description": "",
"annotations": [],
"type": "Db2",
"typeProperties": {
"connectionString": {
"type": "SecureString",
"value": "**********"
},
"password": {
"type": "AzureKeyVaultSecret",
"store": {
"referenceName": "KeyVault",
"type": "LinkedServiceReference"
},
"secretName": "MYKEY"
}
},
"connectVia": {
"referenceName": "DB2LinkedRuntime",
"type": "IntegrationRuntimeReference"
}
}
}