How to override pipeline’s parameters in Azure DevOps during the release?

I have specified parameters in some pipelines in Azure Synapse Analytics, like this:

The value of the variables is different in Production and Pre-Production’s environments. During the release in Azure DevOps I want default values of the parameters to stay as they are in Pre-Production but be updated in Production’s environment.

In Azure DevOps > Pipelines > Releases > Deployment process > Agent jobs > Synpase deployment task for workspace > Override Parameters, I have added needed parameters together with $workspace parameter, it looks like:

Questions:

  1. If I specify parameters, which have to be overridden this way they are not being updated after the release is finished. How do I have to specify the parameters (from the pipelines in Azure Synapse Analytics) then?
  2. Is there a safer way how to specify storage key inside the pipeline and how to update it during the release (instead of specifying it so explicitly)?

An update after the comment:

TemplateForWorkspace.json

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>{
"$schema": "http://schema.management.azure.com/..",
"contentVersion": "1.0.0.0",
"parameters": {
"workspaceName": {
.......
}
"resources": {
.......
"name": "PL_example",
"type": "Microsoft.Synapse/workspaces/pipelines",
"apiVersion": ".",
"properties": {
"description": ".",
"activities": [
{
"name": "Notebook",
"type": "SynapseNotebook",
"dependsOn": [..],
"policy": {..},
"userProperties": [],
"typeProperties": {
"notebook": {
"referenceName": "Notebook",
"type": "NotebookReference"
},
"parameters": {
"url": {
"value": {
"value": "@pipeline().parameters.URL",
"type": "Expression"
}
......
"parameters": {
"URL": {
"type": "string",
"defaultValue": "jdbc:sqlserver://..."
},
}
</code>
<code>{ "$schema": "http://schema.management.azure.com/..", "contentVersion": "1.0.0.0", "parameters": { "workspaceName": { ....... } "resources": { ....... "name": "PL_example", "type": "Microsoft.Synapse/workspaces/pipelines", "apiVersion": ".", "properties": { "description": ".", "activities": [ { "name": "Notebook", "type": "SynapseNotebook", "dependsOn": [..], "policy": {..}, "userProperties": [], "typeProperties": { "notebook": { "referenceName": "Notebook", "type": "NotebookReference" }, "parameters": { "url": { "value": { "value": "@pipeline().parameters.URL", "type": "Expression" } ...... "parameters": { "URL": { "type": "string", "defaultValue": "jdbc:sqlserver://..." }, } </code>
{
"$schema": "http://schema.management.azure.com/..",
"contentVersion": "1.0.0.0",
"parameters": {
    "workspaceName": {
.......
}
    "resources": {
.......
        "name": "PL_example",
        "type": "Microsoft.Synapse/workspaces/pipelines",
        "apiVersion": ".",
        "properties": {
            "description": ".",
            "activities": [
                {
                    "name": "Notebook",
                    "type": "SynapseNotebook",
                    "dependsOn": [..],
                    "policy": {..},
                    "userProperties": [],
                    "typeProperties": {
                        "notebook": {
                            "referenceName": "Notebook",
                            "type": "NotebookReference"
                        },
                        "parameters": {
                            "url": {
                                "value": {
                                    "value": "@pipeline().parameters.URL",
                                    "type": "Expression"

}
......
                "parameters": {
                "URL": {
                    "type": "string",
                    "defaultValue": "jdbc:sqlserver://..."
                },

}

In the end of the script it is stated as default value, which has to be updated after the release with the value in override parameters. but it stays the same value.

I think that after the release the parameter should be added to the beginning of TemplateForWorkspace.json script in the section parameters, but it does not, how do I do it? Am I doing something wrong?

Taking into account that I have added correct values (for the production, which should be updated after the release for the necessary parameters in following locations:

  1. Azure DevOps > Pipelines > Releases > Deployment process > Tasks > Agent jobs > Synpase deployment task for workspace > Override Parameters
  2. Azure DevOps > Pipelines > Releases > Deployment process > Variables > Pipeline variables

3

To better align this post with the topic, it is recommended to include the azure-synapse tag, as the primary focus is on how to create custom parameters in the workspace template for parameterizing Synapse Pipeline features and settings that are not covered by the default deployment parameters template.

For more detailed guidance, please refer to this resource on Azure Synapse Analytics CI/CD with Custom Parameters – Made Easy! – Microsoft Community Hub.

In general, to expose Synapse pipeline parameters in the collaboration branch (main), you need to create a template-parameters-definition.json file that specifies the Synapse pipeline parameters. Once published, the new Synapse pipeline parameters should appear in the TemplateForWorkspace.json template within the publish branch (workspace_publish).

Here is an example of the template-parameters-definition.json file:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>{
"Microsoft.Synapse/workspaces/pipelines": {
"properties": {
"parameters": {
"URL": {
"defaultValue": "="
},
"BlobStorageKey": {
"defaultValue": "="
},
"Server": {
"defaultValue": "="
},
"TempFolder": {
"defaultValue": "="
}
}
}
}
}
</code>
<code>{ "Microsoft.Synapse/workspaces/pipelines": { "properties": { "parameters": { "URL": { "defaultValue": "=" }, "BlobStorageKey": { "defaultValue": "=" }, "Server": { "defaultValue": "=" }, "TempFolder": { "defaultValue": "=" } } } } } </code>
{
    "Microsoft.Synapse/workspaces/pipelines": {
        "properties": {
            "parameters": {
                "URL": {
                    "defaultValue": "="
                },
                "BlobStorageKey": {
                    "defaultValue": "="
                },
                "Server": {
                    "defaultValue": "="
                },
                "TempFolder": {
                    "defaultValue": "="
                }
            }
        }
    }
}

In the release pipeline, ensure to replace the ARM template parameters with the corresponding pipeline variables’ values, rather than directly using the Synapse pipeline parameter names. These pipeline variables can also be configured as secret variables.

Images illustrating these steps are provided below.

4

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật