|
32 | 32 | "keyVaultName": "[format('kv-smk-{0}', parameters('baseName'))]", |
33 | 33 | "iotHubName": "[format('iot-smoke-{0}', parameters('baseName'))]", |
34 | 34 | "eventHubNamespaceName": "[format('eh-smoke-{0}', parameters('baseName'))]", |
35 | | - "eventHubName": "myeventhub", |
36 | | - "eventHubAuthorizationRuleName": "RootManageSharedAccessKey", |
| 35 | + "eventHubName": "smoketest", |
| 36 | + "eventHubsKeyName": "RootManageSharedAccessKey", |
| 37 | + "eventHubsAuthRuleResourceId": "[resourceId('Microsoft.EventHub/namespaces/authorizationRules', variables('eventHubNamespaceName'), variables('eventHubsKeyName'))]", |
37 | 38 | "storageAccountName": "[format('stsmoke{0}', parameters('baseName'))]" |
38 | 39 | }, |
39 | 40 | "resources": [ |
40 | 41 | { |
41 | | - "type": "Microsoft.EventHub/namespaces", |
42 | | - "apiVersion": "2018-01-01-preview", |
| 42 | + "apiVersion": "2015-08-01", |
43 | 43 | "name": "[variables('eventHubNamespaceName')]", |
| 44 | + "type": "Microsoft.EventHub/Namespaces", |
44 | 45 | "location": "[parameters('location')]", |
45 | 46 | "sku": { |
46 | | - "name": "Basic", |
47 | | - "tier": "Basic", |
48 | | - "capacity": 1 |
| 47 | + "name": "Standard", |
| 48 | + "tier": "Standard" |
49 | 49 | }, |
50 | 50 | "properties": { |
51 | | - "zoneRedundant": false, |
52 | | - "isAutoInflateEnabled": false, |
53 | | - "maximumThroughputUnits": 0, |
54 | | - "kafkaEnabled": false |
55 | 51 | } |
56 | 52 | }, |
57 | 53 | { |
|
158 | 154 | "accessTier": "Hot" |
159 | 155 | } |
160 | 156 | }, |
161 | | - { |
162 | | - "type": "Microsoft.EventHub/namespaces/AuthorizationRules", |
163 | | - "apiVersion": "2017-04-01", |
164 | | - "name": "[format('{0}/{1}', variables('eventHubNamespaceName'), variables('eventHubAuthorizationRuleName'))]", |
165 | | - "location": "[parameters('location')]", |
166 | | - "dependsOn": [ |
167 | | - "[resourceId('Microsoft.EventHub/namespaces', variables('eventHubNamespaceName'))]" |
168 | | - ], |
169 | | - "properties": { |
170 | | - "rights": [ |
171 | | - "Listen", |
172 | | - "Manage", |
173 | | - "Send" |
174 | | - ] |
175 | | - } |
176 | | - }, |
177 | 157 | { |
178 | 158 | "type": "Microsoft.EventHub/namespaces/eventhubs", |
179 | 159 | "apiVersion": "2017-04-01", |
|
207 | 187 | } |
208 | 188 | } |
209 | 189 | }, |
210 | | - { |
211 | | - "type": "Microsoft.EventHub/namespaces/eventhubs/authorizationRules", |
212 | | - "apiVersion": "2017-04-01", |
213 | | - "name": "[concat(variables('eventHubNamespaceName'), '/myeventhub/Test')]", |
214 | | - "location": "[parameters('location')]", |
215 | | - "dependsOn": [ |
216 | | - "[resourceId('Microsoft.EventHub/namespaces/eventhubs', variables('eventHubNamespaceName'), 'myeventhub')]", |
217 | | - "[resourceId('Microsoft.EventHub/namespaces', variables('eventHubNamespaceName'))]" |
218 | | - ], |
219 | | - "properties": { |
220 | | - "rights": [ |
221 | | - "Manage", |
222 | | - "Listen", |
223 | | - "Send" |
224 | | - ] |
225 | | - } |
226 | | - }, |
227 | 190 | { |
228 | 191 | "type": "Microsoft.Storage/storageAccounts/blobServices/containers", |
229 | 192 | "apiVersion": "2019-06-01", |
|
277 | 240 | "type": "string", |
278 | 241 | "value": "[reference(variables('keyVaultName')).vaultUri]" |
279 | 242 | }, |
280 | | - "EVENT_HUBS_CONNECTION_STRING": { |
| 243 | + "EVENT_HUBS_NAMESPACE_CONNECTION_STRING": { |
| 244 | + "type": "string", |
| 245 | + "value": "[listkeys(variables('eventHubsAuthRuleResourceId'), '2015-08-01').primaryConnectionString]" |
| 246 | + }, |
| 247 | + "EVENT_HUBS_TESTHUB_NAME": { |
281 | 248 | "type": "string", |
282 | | - "value": "[listKeys(resourceId('Microsoft.EventHub/namespaces/eventhubs/authorizationRules', variables('eventHubNamespaceName'), variables('eventHubName'), 'Test'), '2017-04-01').primaryConnectionString]" |
| 249 | + "value": "[variables('eventHubName')]" |
283 | 250 | }, |
284 | 251 | "BLOB_CONNECTION_STRING": { |
285 | 252 | "type": "string", |
|
0 commit comments