Azure Synapse deploy Error in Devops (MissingApiVersionParameter)

Mark de Groot 46 Reputation points
2021-01-07T15:35:33.787+00:00

Hello,

I'm having a problem with deploying Azure Synapse (workspace) trough DevOps.

Case:
I've created 2 resource groups ( RG-TST and RG-PRD), I also created in both resource groups a Azure Synapse workspace.
Next step was to connect the workspace to Git and use the release pipeline for releasing the workspace to the next resource group.
I followed the steps as provided by Microsoft (link)

The problem is, when I deploy the workspace I'm receiving the following error:

2021-01-07T15:03:13.3424513Z ##[error]At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.  
2021-01-07T15:03:13.3448567Z ##[error]Details:  
2021-01-07T15:03:13.3451062Z ##[error]MissingApiVersionParameter: The api-version query parameter (?api-version=) is required for all requests.  
2021-01-07T15:03:13.3453250Z ##[error]MissingApiVersionParameter: The api-version query parameter (?api-version=) is required for all requests.  
2021-01-07T15:03:13.3455476Z ##[error]MissingApiVersionParameter: The api-version query parameter (?api-version=) is required for all requests.  
2021-01-07T15:03:13.3457666Z ##[error]MissingApiVersionParameter: The api-version query parameter (?api-version=) is required for all requests.  
2021-01-07T15:03:13.3461149Z ##[error]Check out the troubleshooting guide to see if your issue is addressed: https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-resource-group-deployment?view=azure-devops#troubleshooting  
2021-01-07T15:03:13.3464493Z ##[error]Task failed while creating or updating the template deployment.  

I have no idea where this error is coming from, for testing purpose I only added 1 Pipeline in the workspace with a wait statement.
When i look into the "TemplateForWorkspace.json" i see that there is a Api version filled in

            "type": "Microsoft.Synapse/workspaces/linkedServices",  
            "apiVersion": "2019-06-01-preview",  
            "properties": {  

does anyone have a clue what is going wrong?

Thanks in advance,
Kids regards,
Mark

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,988 questions
{count} vote

Accepted answer
  1. Saurabh Sharma 23,816 Reputation points Microsoft Employee
    2021-01-14T00:01:56.857+00:00

    @Mark de Groot The documentation talks about using ARM Template and using CICD extension for setting up the environment. If you are using ARM Template can you please use the CICD plugin instead as we see issues with ARM templates approach which products team is currently looking into.

    Please let me know how it goes with the CICD plugin or if you have any other questions.


1 additional answer

Sort by: Most helpful
  1. SIMON David 1 Reputation point
    2021-01-14T14:18:05.82+00:00

    Hello I am testing the same as you and I have an other problem first when I try to deploy to INT or PRoduction, THen I test to deploy on the Dev and I got the same problem as MarkDeGroot. If you have any solution I would be GLad ;)

    2021-01-13T15:42:25.2886013Z ##[section]Starting: ARM Template deployment: Resource Group scope  
    2021-01-13T15:42:25.3407328Z ==============================================================================  
    2021-01-13T15:42:25.3408059Z Task         : ARM template deployment  
    2021-01-13T15:42:25.3409223Z Description  : Deploy an Azure Resource Manager (ARM) template to all the deployment scopes  
    2021-01-13T15:42:25.3409761Z Version      : 3.179.1  
    2021-01-13T15:42:25.3413104Z Author       : Microsoft Corporation  
    2021-01-13T15:42:25.3415022Z Help         : https://learn.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-resource-group-deployment  
    2021-01-13T15:42:25.3415510Z ==============================================================================  
    2021-01-13T15:42:26.5665963Z ARM Service Connection deployment scope - Subscription  
    2021-01-13T15:42:26.5943656Z Checking if the following resource group exists: x-ehlbi-data-analytics-i-rg.  
    2021-01-13T15:42:27.1845378Z Resource group exists: true.  
    2021-01-13T15:42:27.1854283Z Creating deployment parameters.  
    2021-01-13T15:42:28.0576109Z The detected encoding for file 'D:\a\r1\a\_Synapse\xehlbisyn\TemplateForWorkspace.json' is 'utf-8'  
    2021-01-13T15:42:28.0599030Z The detected encoding for file 'D:\a\r1\a\_Synapse\xehlbisyn\TemplateParametersForWorkspace.json' is 'utf-8'  
    2021-01-13T15:42:28.0621676Z Starting template validation.  
    2021-01-13T15:42:28.0648769Z Deployment name is TemplateForWorkspace-20210113-154228-7ab1  
    2021-01-13T15:42:28.7589412Z Template deployment validation was completed successfully.  
    2021-01-13T15:42:28.7591976Z Starting Deployment.  
    2021-01-13T15:42:28.7592285Z Deployment name is TemplateForWorkspace-20210113-154228-7ab1  
    2021-01-13T15:42:45.3155205Z There were errors in your deployment. Error code: DeploymentFailed.  
    2021-01-13T15:42:45.3244046Z ##[error]At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.  
    2021-01-13T15:42:45.3266508Z ##[error]Details:  
    2021-01-13T15:42:45.3268673Z ##[error]ResourceNotFound: The Resource 'Microsoft.Synapse/workspaces/xehlbidatalakei' under resource group 'x-ehlbi-data-analytics-i-rg' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix  
    2021-01-13T15:42:45.3270655Z ##[error]ResourceNotFound: The Resource 'Microsoft.Synapse/workspaces/xehlbidatalakei' under resource group 'x-ehlbi-data-analytics-i-rg' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix  
    2021-01-13T15:42:45.3273253Z ##[error]ResourceNotFound: The Resource 'Microsoft.Synapse/workspaces/xehlbidatalakei' under resource group 'x-ehlbi-data-analytics-i-rg' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix  
    2021-01-13T15:42:45.3275504Z ##[error]ResourceNotFound: The Resource 'Microsoft.Synapse/workspaces/xehlbidatalakei' under resource group 'x-ehlbi-data-analytics-i-rg' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix  
    2021-01-13T15:42:45.3277455Z ##[error]ResourceNotFound: The Resource 'Microsoft.Synapse/workspaces/xehlbidatalakei' under resource group 'x-ehlbi-data-analytics-i-rg' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix  
    2021-01-13T15:42:45.3279356Z ##[error]ResourceNotFound: The Resource 'Microsoft.Synapse/workspaces/xehlbidatalakei' under resource group 'x-ehlbi-data-analytics-i-rg' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix  
    2021-01-13T15:42:45.3281304Z ##[error]ResourceNotFound: The Resource 'Microsoft.Synapse/workspaces/xehlbidatalakei' under resource group 'x-ehlbi-data-analytics-i-rg' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix  
    2021-01-13T15:42:45.3283204Z ##[error]ResourceNotFound: The Resource 'Microsoft.Synapse/workspaces/xehlbidatalakei' under resource group 'x-ehlbi-data-analytics-i-rg' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix  
    2021-01-13T15:42:45.3285304Z ##[error]ResourceNotFound: The Resource 'Microsoft.Synapse/workspaces/xehlbidatalakei' under resource group 'x-ehlbi-data-analytics-i-rg' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix  
    2021-01-13T15:42:45.3289226Z ##[error]ResourceNotFound: The Resource 'Microsoft.Synapse/workspaces/xehlbidatalakei' under resource group 'x-ehlbi-data-analytics-i-rg' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix  
    2021-01-13T15:42:45.3291100Z ##[error]Check out the troubleshooting guide to see if your issue is addressed: https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-resource-group-deployment?view=azure-devops#troubleshooting  
    2021-01-13T15:42:45.3292584Z ##[error]Task failed while creating or updating the template deployment.  
    2021-01-13T15:42:45.3434581Z ##[section]Finishing: ARM Template deployment: Resource Group scope  
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.