1+ {
2+ "$schema" : " http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#" ,
3+ "contentVersion" : " 1.0.0.0" ,
4+ "parameters" : {
5+ "name" : {
6+ "type" : " String"
7+ },
8+ "defaultDataLakeStorageAccountName" : {
9+ "type" : " String" ,
10+ "metadata" : {
11+ "description" : " Data Lake Storage account that you will use for Synapse Workspace."
12+ }
13+ },
14+ "defaultDataLakeStorageFilesystemName" : {
15+ "defaultValue" : " workspace" ,
16+ "type" : " String" ,
17+ "metadata" : {
18+ "description" : " Container in Data Lake Storage account that you will use for Synapse Workspace."
19+ }
20+ },
21+ "sqlAdministratorLogin" : {
22+ "type" : " String"
23+ },
24+ "sqlAdministratorPassword" : {
25+ "type" : " SecureString"
26+ },
27+ "tagValues" : {
28+ "defaultValue" : {"Created with" :" Synapse Azure Resource Manager deploment template" },
29+ "type" : " Object"
30+ },
31+ "storageSubscriptionID" : {
32+ "defaultValue" : " [subscription().subscriptionId]" ,
33+ "type" : " String" ,
34+ "metadata" : {
35+ "description" : " Do not change this value if Data Lake Storage is placed in the same subscription as Synapse Workspace(recommended)."
36+ }
37+ },
38+ "storageResourceGroupName" : {
39+ "defaultValue" : " [resourceGroup().name]" ,
40+ "type" : " String" ,
41+ "metadata" : {
42+ "description" : " Do not change this value if Data Lake Storage is placed in the same resource group as Synapse Workspace."
43+ }
44+ },
45+ "storageLocation" : {
46+ "defaultValue" : " [resourceGroup().location]" ,
47+ "type" : " String" ,
48+ "metadata" : {
49+ "description" : " Do not change this value if Data Lake Storage is placed in the same region as Synapse Workspace(recommended)."
50+ }
51+ }
52+ },
53+ "variables" : {
54+ "storageBlobDataContributorRoleID" : " ba92f5b4-2d11-453d-a403-e96b0029c9fe" ,
55+ "defaultDataLakeStorageAccountUrl" : " [concat('https://', parameters('defaultDataLakeStorageAccountName'), '.dfs.core.windows.net')]"
56+ },
57+ "resources" : [
58+ {
59+ "type" : " Microsoft.Synapse/workspaces" ,
60+ "apiVersion" : " 2019-06-01-preview" ,
61+ "name" : " [parameters('name')]" ,
62+ "location" : " [resourceGroup().location]" ,
63+ "tags" : " [parameters('tagValues')]" ,
64+ "identity" : {
65+ "type" : " SystemAssigned"
66+ },
67+ "properties" : {
68+ "defaultDataLakeStorage" : {
69+ "accountUrl" : " [variables('defaultDataLakeStorageAccountUrl')]" ,
70+ "filesystem" : " [parameters('defaultDataLakeStorageFilesystemName')]"
71+ },
72+ "virtualNetworkProfile" : {
73+ "computeSubnetId" : " "
74+ },
75+ "sqlAdministratorLogin" : " [parameters('sqlAdministratorLogin')]" ,
76+ "sqlAdministratorLoginPassword" : " [parameters('sqlAdministratorPassword')]"
77+ },
78+ "resources" : [
79+ {
80+ "type" : " firewallrules" ,
81+ "apiVersion" : " 2019-06-01-preview" ,
82+ "name" : " allowAll" ,
83+ "location" : " [resourceGroup().location]" ,
84+ "dependsOn" : [
85+ " [concat('Microsoft.Synapse/workspaces/', parameters('name'))]"
86+ ],
87+ "properties" : {
88+ "startIpAddress" : " 0.0.0.0" ,
89+ "endIpAddress" : " 255.255.255.255"
90+ }
91+ }
92+ ]
93+ },
94+ {
95+ "type" : " Microsoft.Resources/deployments" ,
96+ "apiVersion" : " 2019-05-01" ,
97+ "name" : " storageRoleDeploymentResource" ,
98+ "dependsOn" : [
99+ " [concat('Microsoft.Synapse/workspaces/', parameters('name'))]"
100+ ],
101+ "properties" : {
102+ "mode" : " Incremental" ,
103+ "template" : {
104+ "$schema" : " https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#" ,
105+ "contentVersion" : " 1.0.0.0" ,
106+ "parameters" : {},
107+ "variables" : {},
108+ "resources" : [
109+ {
110+ "type" : " Microsoft.Storage/storageAccounts/blobServices/containers/providers/roleAssignments" ,
111+ "apiVersion" : " 2018-09-01-preview" ,
112+ "name" : " [concat(parameters('defaultDataLakeStorageAccountName'), '/default/', parameters('defaultDataLakeStorageFilesystemName'), '/Microsoft.Authorization/', guid(concat(resourceGroup().id, '/', variables('storageBlobDataContributorRoleID'), '/', parameters('name'))))]" ,
113+ "location" : " [parameters('storageLocation')]" ,
114+ "properties" : {
115+ "roleDefinitionId" : " [resourceId('Microsoft.Authorization/roleDefinitions', variables('storageBlobDataContributorRoleID'))]" ,
116+ "principalId" : " [reference(concat('Microsoft.Synapse/workspaces/', parameters('name')), '2019-06-01-preview', 'Full').identity.principalId]" ,
117+ "principalType" : " ServicePrincipal"
118+ }
119+ }
120+ ]
121+ }
122+ },
123+ "subscriptionId" : " [parameters('storageSubscriptionID')]" ,
124+ "resourceGroup" : " [parameters('storageResourceGroupName')]"
125+ }
126+ ],
127+ "outputs" : {}
128+ }
0 commit comments