1+ {
2+ "$schema" : " http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#" ,
3+ "contentVersion" : " 1.0.0.1" ,
4+ "parameters" : {
5+ "name" : {
6+ "type" : " String"
7+ },
8+ "location" : {
9+ "defaultValue" : " [resourceGroup().location]" ,
10+ "type" : " String"
11+ },
12+ "defaultDataLakeStorageAccountName" : {
13+ "type" : " String"
14+ },
15+ "defaultDataLakeStorageFilesystemName" : {
16+ "type" : " String"
17+ },
18+ "sqlAdministratorLogin" : {
19+ "type" : " String"
20+ },
21+ "sqlAdministratorPassword" : {
22+ "type" : " SecureString"
23+ },
24+ "setWorkspaceIdentityRbacOnFilesystem" : {
25+ "type" : " Bool"
26+ },
27+ "allowAllConnections" : {
28+ "defaultValue" : true ,
29+ "type" : " Bool"
30+ },
31+ "poolSubnetId" : {
32+ "defaultValue" : " " ,
33+ "type" : " String"
34+ },
35+ "tagValues" : {
36+ "defaultValue" : {},
37+ "type" : " Object"
38+ },
39+ "storageSubscriptionID" : {
40+ "defaultValue" : " [subscription().subscriptionId]" ,
41+ "type" : " String"
42+ },
43+ "storageResourceGroupName" : {
44+ "defaultValue" : " [resourceGroup().name]" ,
45+ "type" : " String"
46+ },
47+ "storageLocation" : {
48+ "defaultValue" : " [resourceGroup().location]" ,
49+ "type" : " String"
50+ }
51+ },
52+ "variables" : {
53+ "storageBlobDataContributorRoleID" : " ba92f5b4-2d11-453d-a403-e96b0029c9fe" ,
54+ "defaultDataLakeStorageAccountUrl" : " [concat('https://', parameters('defaultDataLakeStorageAccountName'), '.dfs.core.windows.net')]"
55+ },
56+ "resources" : [
57+ {
58+ "type" : " Microsoft.Synapse/workspaces" ,
59+ "apiVersion" : " 2019-06-01-preview" ,
60+ "name" : " [parameters('name')]" ,
61+ "location" : " [parameters('location')]" ,
62+ "tags" : " [parameters('tagValues')]" ,
63+ "identity" : {
64+ "type" : " SystemAssigned"
65+ },
66+ "properties" : {
67+ "defaultDataLakeStorage" : {
68+ "accountUrl" : " [variables('defaultDataLakeStorageAccountUrl')]" ,
69+ "filesystem" : " [parameters('defaultDataLakeStorageFilesystemName')]"
70+ },
71+ "virtualNetworkProfile" : {
72+ "computeSubnetId" : " [parameters('poolSubnetId')]"
73+ },
74+ "sqlAdministratorLogin" : " [parameters('sqlAdministratorLogin')]" ,
75+ "sqlAdministratorLoginPassword" : " [parameters('sqlAdministratorLoginPassword')]"
76+ },
77+ "resources" : [
78+ {
79+ "type" : " firewallrules" ,
80+ "apiVersion" : " 2019-06-01-preview" ,
81+ "name" : " allowAll" ,
82+ "location" : " [parameters('location')]" ,
83+ "dependsOn" : [
84+ " [concat('Microsoft.Synapse/workspaces/', parameters('name'))]"
85+ ],
86+ "properties" : {
87+ "startIpAddress" : " 0.0.0.0" ,
88+ "endIpAddress" : " 255.255.255.255"
89+ },
90+ "condition" : " [parameters('allowAllConnections')]"
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+ "condition" : " [parameters('setWorkspaceIdentityRbacOnFilesystem')]"
126+ }
127+ ],
128+ "outputs" : {}
129+ }
0 commit comments