ADF에서 연결된 서비스를 매개변수화하려고 합니다. 아마도 혼란스러워하는 것 같아서, 누군가 명확하게 설명해주시면 좋겠습니다.
두 가지 질문이 있습니다:
- 'url'과 'secretName'이라는 두 개의 매개변수가 있습니다. 하지만 ARM 템플릿에서는 'url' 매개변수만 보이고 'secretName'은 보이지 않습니다. 왜 'secretName'은 매개변수화되지 않는 것일까요?
- ARM 템플릿을 다른 환경(예: 'Test' 환경)에 배포할 때 'url' 매개변수에 값을 어떻게 제공해야 할까요?
다음은 파일들입니다:
연결된 서비스:
{
"name": "LS_DynamicParam",
"properties": {
"parameters": {
"SA_URL": {
"type": "String",
"defaultValue": "https://saforrisma.dfs.core.windows.net/"
},
"SecretName": {
"type": "String",
"defaultValue": "MySecretInKeyVault"
}
},
"annotations": [],
"type": "AzureBlobFS",
"typeProperties": {
"url": "@{linkedService().SA_URL}",
"accountKey": {
"type": "AzureKeyVaultSecret",
"store": {
"referenceName": "LS_AKV",
"type": "LinkedServiceReference"
},
"secretName": {
"value": "@linkedService().SecretName",
"type": "Expression"
}
}
}
}
}
ARMTemplatePArametersForFactory.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"factoryName": {
"value": "ADF-Dev"
},
"LS_AKV_properties_typeProperties_baseUrl": {
"value": "https://kv-forrisma.vault.azure.net/"
},
"LS_MAINStorage_properties_typeProperties_connectionString_secretName": {
"value": "storageaccount-adf-dev"
},
"LS_DynamicParam_properties_typeProperties_url": {
"value": "@{linkedService().SA_URL}"
}
}
}