synapse deployment programatically using powershell

MrFlinstone 541 Reputation points
2024-03-05T13:49:32.5766667+00:00

I would like to know if its possible to perform a synapse deployment using PowerShell programmatically. If one has the template files that is TemplateParametersForWorkspace.json and TemplateForWorkspace.json.

I have tried to use New-AzResourceGroupDeployment to no avail.

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,856 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vinodh247 17,941 Reputation points
    2024-03-05T14:30:05.2833333+00:00

    Hi MrFlinstone,

    Thanks for reaching out to Microsoft Q&A.

    • Using custom PS script:
    ./Create-AzSynapseWorkspace -ResourceGroupName "rg-name" -Name "synwssps" -Location "US East" -DefaultDataLakeStorageAccountName "storageaccount" -DefaultDataLakeStorageFilesystem "sfs" -AdminSqlLogin "admin" -AdminSqlPwd "passw"
    
    

    For reference: https://github.com/techtalkcorner/AzSynapseAnalytics/blob/master/Scripts/PowerShell/Create-AzSynapseWorkspace.ps1

    • Using ARM templates:

    https://mrpaulandrew.com/2020/12/08/trying-to-deploy-azure-synapse-analytics-using-arm-templates/

    https://learn.microsoft.com/en-us/azure/templates/microsoft.synapse/workspaces?pivots=deployment-language-bicep

    https://techcommunity.microsoft.com/t5/azure-synapse-analytics-blog/how-to-activate-my-synapse-workspace-using-arm-templates/ba-p/3565748

    Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.


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.