Parameters CDS链接服务动态json
对于CD链接的服务,无法(从UI)引入参数。但是Microsoft确实在高级设置中为我们提供了方便的“以Json格式指定动态内容”复选框 是否有人有这样一个转换标准链接服务json的示例:Parameters CDS链接服务动态json,parameters,azure-data-factory,azure-data-factory-2,cds,Parameters,Azure Data Factory,Azure Data Factory 2,Cds,对于CD链接的服务,无法(从UI)引入参数。但是Microsoft确实在高级设置中为我们提供了方便的“以Json格式指定动态内容”复选框 是否有人有这样一个转换标准链接服务json的示例: { "name": "cdsCorpPlan", "type": "Microsoft.DataFactory/factories/linkedservices", "properties&quo
{
"name": "cdsCorpPlan",
"type": "Microsoft.DataFactory/factories/linkedservices",
"properties": {
"annotations": [],
"type": "CommonDataServiceForApps",
"typeProperties": {
"deploymentType": "Online",
"serviceUri": "https://blahblah-dev.crm.dynamics.com",
"authenticationType": "AADServicePrincipal",
"servicePrincipalCredentialType": "ServicePrincipalKey",
"servicePrincipalId": "xxx-xxx-xxx-xxx-xxxxxxxx",
"encryptedCredential": "ew0KICAiVmVyc2lvbiI6ICIyMDE3LTExLTMwIiwNCiAgIlByb3RlY3Rpb25Nb2RlIjogIktleSIsDQogICJTZWNyZXRDb250ZW50VHlwZSI6ICJQbGFpbnRleHQiLA0KICAiQ3JlZGVudGlhbElkIjogIkFERi1MUC1PUkNIRVNUUkFUT1ItREVWX2M0MDYzYjEzLTBkNjYtNDQ2Yi04NjFkLTYyYjJkNjI1MjNlYiINCn0="
}
}
}
变成一个参数化的版本
具体来说,如果我想参数化serviceUri和服务主体键,语法会是什么?我想我已经找到了答案。对于感兴趣的人:
{
"name": "cdsCorpPlanTCO",
"properties": {
"parameters": {
"SecretName": {
"type": "string"
}
},
"type": "CommonDataServiceForApps",
"typeProperties": {
"deploymentType": "Online",
"serviceUri": {
"type": "AzureKeyVaultSecret",
"store": {
"referenceName": "MyKeyVault",
"type": "LinkedServiceReference"
},
"secretName": {
"value": "@linkedService().SecretName",
"type": "Expression"
}
},
"authenticationType": "AADServicePrincipal",
"servicePrincipalCredentialType": "ServicePrincipalKey",
"servicePrincipalId": "xxxx-xxxx-xxxx-xxxx-xxxxxxxx",
"servicePrincipalCredential": {
"type": "AzureKeyVaultSecret",
"store": {
"referenceName": "MyKeyVault",
"type": "LinkedServiceReference"
},
"secretName": "SPkey"
}
},
"annotations": []
},
"type": "Microsoft.DataFactory/factories/linkedservices"
}