Azure Synapse Analytics- Overriding SelfHost IR Parameter
Hi Team,
Im facing issue with Azure Synapse Pipeline deployment through Azure DevOps CI/CD deployment pipeline to higher environment with Self Host Integration Run time. Here is the scenario:
- Data is getting copied to Azure Synapse storage from On-Prem Oracle System and one SFT server. This is done using a Self-Hosted IR
- The file: template-parameters-definition.json has been updated accordingly :
"Microsoft.Synapse/workspaces/linkedServices": {
"Oracle": {
"properties": {
"typeProperties": {
"connectionString": "=",
"password": {
"type": "=",
"store": {
"referenceName": "="
},
"secretName": "="
}
},
"connectVia": {
"referenceName": "="
}
}
},
"Sftp": {
"properties": {
"typeProperties": {
"host": "=",
"userName": "=",
"password": {
"type": "=",
"store": {
"referenceName": "="
},
"secretName": "=",
"secretVersion": "="
}
},
"connectVia": {
"referenceName": "="
}
}
}
as seen above have included the property: "connectVia"
- Now in the Work_publish folder that contains these two files: TemplateForWorkspace.json & TemplateParametersForWorkspace.json has the entries accordingly after the code gets published from the git main branch
-- This is for TemplateParametersForWorkspace.json
"LS_Oracle_IFS_properties_connectVia_referenceName": { "value": "Integration-runtime-selfhost-eusfs02" }, "LS_Sftp_eus_01_properties_connectVia_referenceName": { "value": "Integration-runtime-selfhost-eusfs02" }
- -- This is for TemplateForWorkspace.json
{
"name": "[concat(parameters('workspaceName'), '/LS_Oracle_IFS')]",
"type": "Microsoft.Synapse/workspaces/linkedServices",
"apiVersion": "2019-06-01-preview",
"properties": {
"annotations": [],
"type": "Oracle",
"typeProperties": {
"connectionString": {
"type": "SecureString",
"value": "[parameters('LS_Oracle_IFS_properties_typeProperties_connectionString')]"
},
"password": {
"type": "[parameters('LS_Oracle_IFS_properties_typeProperties_password_type')]",
"store": {
"referenceName": "[parameters('LS_Oracle_IFS_properties_typeProperties_password_store_referenceName')]",
"type": "LinkedServiceReference"
},
"secretName": "[parameters('LS_Oracle_IFS_properties_typeProperties_password_secretName')]"
}
},
"connectVia": {
"referenceName": "[parameters('LS_Oracle_IFS_properties_connectVia_referenceName')]",
"type": "IntegrationRuntimeReference"
}
},
"dependsOn": [
"[concat(variables('workspaceId'), '/integrationRuntimes/', parameters('LS_Oracle_IFS_properties_connectVia_referenceName'))]",
"[concat(variables('workspaceId'), '/linkedServices/', parameters('LS_Oracle_IFS_properties_typeProperties_password_store_referenceName'))]"
]
}
As seen above the dependsOn and connectVia property has been updated in the file: TemplateForWorkspace.json
- Now with this setup while going for deployment to our UAT environment im getting error. Logs attached here
summary:
"Encountered with exception:Error: Failed to parse package: Error: Could not figure out full dependancy model."
2023-12-06T12:44:54.4805277Z Could not figure out full dependancy model for these artifacts. Check template for correctness.
2023-12-06T12:44:54.4805753Z -----------------------------------------------------------------------------------------------
2023-12-06T12:44:54.4806168Z Name: PL_Copy_Tables, Type: Microsoft.Synapse/workspaces/pipelines
2023-12-06T12:44:54.4806611Z Dependency Not found: Microsoft.Synapse/workspaces/ws-da-edw-finhr-qa-01/pipelines/PL_File_Transfer_bulk
2023-12-06T12:44:54.4807105Z Dependency Not found: Microsoft.Synapse/workspaces/ws-da-edw-finhr-qa-01/datasets/OracleTable1
2023-12-06T12:44:54.4807529Z Name: PL_DependentTable_Load, Type: Microsoft.Synapse/workspaces/pipelines
2023-12-06T12:44:54.4808001Z Dependency Not found: Microsoft.Synapse/workspaces/ws-da-edw-finhr-qa-01/pipelines/PL_Src_To_Landing
2023-12-06T12:44:54.4808450Z Name: PL_File_Transfer_bulk, Type: Microsoft.Synapse/workspaces/pipelines
2023-12-06T12:44:54.4808880Z Dependency Not found: Microsoft.Synapse/workspaces/ws-da-edw-finhr-qa-01/datasets/Binary1
2023-12-06T12:44:54.4809537Z Dependency Not found: Microsoft.Synapse/workspaces/ws-da-edw-finhr-qa-01/datasets/DS_Landing_Source
2023-12-06T12:44:54.4810039Z Dependency Not found: Microsoft.Synapse/workspaces/ws-da-edw-finhr-qa-01/datasets/DS_cpy_to_processed_target
2023-12-06T12:44:54.4810483Z Name: PL_Src_To_Landing, Type: Microsoft.Synapse/workspaces/pipelines
2023-12-06T12:44:54.4811114Z Dependency Not found: Microsoft.Synapse/workspaces/ws-da-edw-finhr-qa-01/pipelines/PL_Copy_Tables
2023-12-06T12:44:54.4811537Z Name: pl_master_data_Load, Type: Microsoft.Synapse/workspaces/pipelines
2023-12-06T12:44:54.4813696Z Dependency Not found: Microsoft.Synapse/workspaces/ws-da-edw-finhr-qa-01/pipelines/PL_Src_To_Landing
2023-12-06T12:44:54.4814151Z Dependency Not found: Microsoft.Synapse/workspaces/ws-da-edw-finhr-qa-01/pipelines/PL_DependentTable_Load
2023-12-06T12:44:54.4814619Z Name: Binary1, Type: Microsoft.Synapse/workspaces/datasets
2023-12-06T12:44:54.4815091Z Dependency Not found: Microsoft.Synapse/workspaces/ws-da-edw-finhr-qa-01/linkedServices/LS_Sftp_eus_01
2023-12-06T12:44:54.4815540Z Name: DS_Landing_Source, Type: Microsoft.Synapse/workspaces/datasets
2023-12-06T12:44:54.4815999Z Dependency Not found: Microsoft.Synapse/workspaces/ws-da-edw-finhr-qa-01/linkedServices/LS_Sftp_eus_01
2023-12-06T12:44:54.4816436Z Name: DS_cpy_to_processed_target, Type: Microsoft.Synapse/workspaces/datasets
2023-12-06T12:44:54.4816891Z Dependency Not found: Microsoft.Synapse/workspaces/ws-da-edw-finhr-qa-01/linkedServices/LS_Sftp_eus_01
2023-12-06T12:44:54.4817346Z Name: OracleTable1, Type: Microsoft.Synapse/workspaces/datasets
2023-12-06T12:44:54.4817772Z Dependency Not found: Microsoft.Synapse/workspaces/ws-da-edw-finhr-qa-01/linkedServices/LS_Oracle_IFS
2023-12-06T12:44:54.4818217Z Name: LS_Oracle_IFS, Type: Microsoft.Synapse/workspaces/linkedServices
2023-12-06T12:44:54.4818675Z Dependency Not found: Microsoft.Synapse/workspaces/ws-da-edw-finhr-qa-01/integrationRuntimes/On-prem-Selfhosted
2023-12-06T12:44:54.4819319Z Name: LS_Sftp_eus_01, Type: Microsoft.Synapse/workspaces/linkedServices
2023-12-06T12:44:54.4819766Z Dependency Not found: Microsoft.Synapse/workspaces/ws-da-edw-finhr-qa-01/integrationRuntimes/On-prem-Selfhosted
2023-12-06T12:44:54.4820217Z Name: Trg_Ceridian, Type: Microsoft.Synapse/workspaces/triggers
2023-12-06T12:44:54.4820599Z Dependency Not found: Microsoft.Synapse/workspaces/ws-da-edw-finhr-qa-01/pipelines/pl_master_data_Load
2023-12-06T12:44:54.4820939Z Name: Trg_Connect, Type: Microsoft.Synapse/workspaces/triggers
2023-12-06T12:44:54.4821276Z Dependency Not found: Microsoft.Synapse/workspaces/ws-da-edw-finhr-qa-01/pipelines/pl_master_data_Load
2023-12-06T12:44:54.4821623Z Name: Trg_IFS_Full_Load, Type: Microsoft.Synapse/workspaces/triggers
2023-12-06T12:44:54.4822024Z Dependency Not found: Microsoft.Synapse/workspaces/ws-da-edw-finhr-qa-01/pipelines/pl_master_data_Load
2023-12-06T12:44:54.4822439Z Name: Trg_IFS_Incr_Load, Type: Microsoft.Synapse/workspaces/triggers
2023-12-06T12:44:54.4822791Z Dependency Not found: Microsoft.Synapse/workspaces/ws-da-edw-finhr-qa-01/pipelines/pl_master_data_Load
2023-12-06T12:44:54.4823115Z -----------------------------------------------------------------------------------------------
2023-12-06T12:44:54.4834504Z deploy operation failed
2023-12-06T12:44:54.4835155Z An error occurred during execution: Error: Failed to parse package: Error: Could not figure out full dependancy model. Some dependancies may not exist in template.
2023-12-06T12:44:54.4836486Z ##[debug]task result: Failed
2023-12-06T12:44:54.4864999Z ##[error]Encountered with exception:Error: Failed to parse package: Error: Could not figure out full dependancy model. Some dependancies may not exist in template.
2023-12-06T12:44:54.4871598Z ##[debug]Processed: ##vso[task.issue type=error;]Encountered with exception:Error: Failed to parse package: Error: Could not figure out full dependancy model. Some dependancies may not exist in template.
2023-12-06T12:44:54.4878625Z ##[debug]Processed: ##vso[task.complete result=Failed;]Encountered with exception:Error: Failed to parse package: Error: Could not figure out full dependancy model. Some dependancies may not exist in template.
2023-12-06T12:44:54.5030161Z ##[section]Finishing: Synpase deployment task for workspace: ws-da-edw-finhr-qa-01
Please let me know what might be the issue and how do i fix it. Please advice.
Note: If i'm remove this self-host integration run time parametrization from template-parameters-definition.json then the deployment goes fine, but i had to manually set or reconfigure the SHIR refrenece in the linked service connection it in higher environemnt (UAT) and then publish the code again.