-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRSG_notes.txt
496 lines (487 loc) · 38.3 KB
/
RSG_notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
az group create -l eastus -n rgDataMigration
az deployment group create --resource-group rgDataMigration --template-file event-grid-rsg/RsgEventHubsDataMigration.bicep --parameters eventHubNamespaceName=rsgeventhubnamespace eventHubName=hubdatamigration sqlServerName=rsgsqlservername sqlServerUserName=rsgusername sqlServerPassword=Incektiplaktor4539 sqlServerDatabaseName=rsgdatabasename storageName=rsguniquestoragename functionAppName=rsgappname
----------------------------
az deployment group create --resource-group rgDataMigration --template-file event-grid-rsg/RsgEventHubsDataMigration.bicep --parameters eventHubNamespaceName=rsgeventhubnamespace eventHubName=hubdatamigration sqlServerName=rsgsqlservername sqlServerUserName=rsgusername sqlServerPassword=Incektiplaktor4539 sqlServerDatabaseName=rsgdatabasename storageName=rsguniquestoragename functionAppName=rsgappname
/home/ridvan/az204/rsg_azure_tests/event-grid-rsg/RsgEventHubsDataMigration.bicep(29,5) : Warning no-unused-vars: Variable "guid_role_assign_containers_write" is declared but never used. [https://aka.ms/bicep/linter/no-unused-vars]
/home/ridvan/az204/rsg_azure_tests/event-grid-rsg/RsgEventHubsDataMigration.bicep(31,31) : Warning no-loc-expr-outside-params: Use a parameter here instead of 'resourceGroup().location'. 'resourceGroup().location' and 'deployment().location' should only be used as a default value for parameters. [https://aka.ms/bicep/linter/no-loc-expr-outside-params]
/home/ridvan/az204/rsg_azure_tests/event-grid-rsg/RsgEventHubsDataMigration.bicep(157,3) : Warning BCP035: The specified "object" declaration is missing the following required properties: "status". If this is an inaccuracy in the documentation, please report it to the Bicep Team. [https://aka.ms/bicep-type-issues]
/home/ridvan/az204/rsg_azure_tests/event-grid-rsg/RsgEventHubsDataMigration.bicep(194,47) : Warning no-hardcoded-env-urls: Environment URLs should not be hardcoded. Use the environment() function to ensure compatibility across clouds. Found this disallowed host: "database.windows.net" [https://aka.ms/bicep/linter/no-hardcoded-env-urls]
{
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Resources/deployments/RsgEventHubsDataMigration",
"location": null,
"name": "RsgEventHubsDataMigration",
"properties": {
"correlationId": "bb26e594-9661-4980-aec2-bda2d2e27ed3",
"debugSetting": null,
"dependencies": [
{
"dependsOn": [
{
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Authorization/roleAssignments/3ddbaaaa-a327-5c20-bbfb-3592914669a2",
"resourceGroup": "rgDataMigration",
"resourceName": "3ddbaaaa-a327-5c20-bbfb-3592914669a2",
"resourceType": "Microsoft.Authorization/roleAssignments"
}
],
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.EventHub/namespaces/rsgeventhubnamespace",
"resourceGroup": "rgDataMigration",
"resourceName": "rsgeventhubnamespace",
"resourceType": "Microsoft.EventHub/namespaces"
},
{
"dependsOn": [
{
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.EventHub/namespaces/rsgeventhubnamespace",
"resourceGroup": "rgDataMigration",
"resourceName": "rsgeventhubnamespace",
"resourceType": "Microsoft.EventHub/namespaces"
},
{
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Storage/storageAccounts/rsguniquestoragename",
"resourceGroup": "rgDataMigration",
"resourceName": "rsguniquestoragename",
"resourceType": "Microsoft.Storage/storageAccounts"
}
],
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.EventHub/namespaces/rsgeventhubnamespace/eventhubs/hubdatamigration",
"resourceGroup": "rgDataMigration",
"resourceName": "rsgeventhubnamespace/hubdatamigration",
"resourceType": "Microsoft.EventHub/namespaces/eventhubs"
},
{
"dependsOn": [
{
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Sql/servers/rsgsqlservername",
"resourceGroup": "rgDataMigration",
"resourceName": "rsgsqlservername",
"resourceType": "Microsoft.Sql/servers"
}
],
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Sql/servers/rsgsqlservername/databases/rsgdatabasename",
"resourceGroup": "rgDataMigration",
"resourceName": "rsgsqlservername/rsgdatabasename",
"resourceType": "Microsoft.Sql/servers/databases"
},
{
"dependsOn": [
{
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Sql/servers/rsgsqlservername",
"resourceGroup": "rgDataMigration",
"resourceName": "rsgsqlservername",
"resourceType": "Microsoft.Sql/servers"
}
],
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Sql/servers/rsgsqlservername/firewallRules/AllowAllAzureIps",
"resourceGroup": "rgDataMigration",
"resourceName": "rsgsqlservername/AllowAllAzureIps",
"resourceType": "Microsoft.Sql/servers/firewallRules"
},
{
"dependsOn": [
{
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Storage/storageAccounts/rsguniquestoragename",
"resourceGroup": "rgDataMigration",
"resourceName": "rsguniquestoragename",
"resourceType": "Microsoft.Storage/storageAccounts"
}
],
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Authorization/roleAssignments/3ddbaaaa-a327-5c20-bbfb-3592914669a2",
"resourceGroup": "rgDataMigration",
"resourceName": "3ddbaaaa-a327-5c20-bbfb-3592914669a2",
"resourceType": "Microsoft.Authorization/roleAssignments"
},
{
"dependsOn": [
{
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Web/serverfarms/rsgappnamePlan",
"resourceGroup": "rgDataMigration",
"resourceName": "rsgappnamePlan",
"resourceType": "Microsoft.Web/serverfarms"
},
{
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Authorization/roleAssignments/3ddbaaaa-a327-5c20-bbfb-3592914669a2",
"resourceGroup": "rgDataMigration",
"resourceName": "3ddbaaaa-a327-5c20-bbfb-3592914669a2",
"resourceType": "Microsoft.Authorization/roleAssignments"
},
{
"actionName": "listKeys",
"apiVersion": "2015-05-01-preview",
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Storage/storageAccounts/rsguniquestoragename",
"resourceGroup": "rgDataMigration",
"resourceName": "rsguniquestoragename",
"resourceType": "Microsoft.Storage/storageAccounts"
}
],
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Web/sites/rsgappname",
"resourceGroup": "rgDataMigration",
"resourceName": "rsgappname",
"resourceType": "Microsoft.Web/sites"
}
],
"duration": "PT4M9.4870707S",
"error": null,
"mode": "Incremental",
"onErrorDeployment": null,
"outputResources": [
{
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Authorization/roleAssignments/3ddbaaaa-a327-5c20-bbfb-3592914669a2",
"resourceGroup": "rgDataMigration"
},
{
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.EventHub/namespaces/rsgeventhubnamespace",
"resourceGroup": "rgDataMigration"
},
{
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.EventHub/namespaces/rsgeventhubnamespace/eventhubs/hubdatamigration",
"resourceGroup": "rgDataMigration"
},
{
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Sql/servers/rsgsqlservername",
"resourceGroup": "rgDataMigration"
},
{
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Sql/servers/rsgsqlservername/databases/rsgdatabasename",
"resourceGroup": "rgDataMigration"
},
{
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Sql/servers/rsgsqlservername/firewallRules/AllowAllAzureIps",
"resourceGroup": "rgDataMigration"
},
{
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Storage/storageAccounts/rsguniquestoragename",
"resourceGroup": "rgDataMigration"
},
{
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Web/serverfarms/rsgappnamePlan",
"resourceGroup": "rgDataMigration"
},
{
"id": "/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Web/sites/rsgappname",
"resourceGroup": "rgDataMigration"
}
],
"outputs": null,
"parameters": {
"eventHubName": {
"type": "String",
"value": "hubdatamigration"
},
"eventHubNamespaceName": {
"type": "String",
"value": "rsgeventhubnamespace"
},
"functionAppName": {
"type": "String",
"value": "rsgappname"
},
"sqlServerDatabaseName": {
"type": "String",
"value": "rsgdatabasename"
},
"sqlServerName": {
"type": "String",
"value": "rsgsqlservername"
},
"sqlServerPassword": {
"type": "SecureString"
},
"sqlServerUserName": {
"type": "String",
"value": "rsgusername"
},
"storageName": {
"type": "String",
"value": "rsguniquestoragename"
}
},
"parametersLink": null,
"providers": [
{
"id": null,
"namespace": "Microsoft.EventHub",
"providerAuthorizationConsentState": null,
"registrationPolicy": null,
"registrationState": null,
"resourceTypes": [
{
"aliases": null,
"apiProfiles": null,
"apiVersions": null,
"capabilities": null,
"defaultApiVersion": null,
"locationMappings": null,
"locations": [
"eastus"
],
"properties": null,
"resourceType": "namespaces",
"zoneMappings": null
},
{
"aliases": null,
"apiProfiles": null,
"apiVersions": null,
"capabilities": null,
"defaultApiVersion": null,
"locationMappings": null,
"locations": [
null
],
"properties": null,
"resourceType": "namespaces/eventhubs",
"zoneMappings": null
}
]
},
{
"id": null,
"namespace": "Microsoft.Sql",
"providerAuthorizationConsentState": null,
"registrationPolicy": null,
"registrationState": null,
"resourceTypes": [
{
"aliases": null,
"apiProfiles": null,
"apiVersions": null,
"capabilities": null,
"defaultApiVersion": null,
"locationMappings": null,
"locations": [
"eastus"
],
"properties": null,
"resourceType": "servers",
"zoneMappings": null
},
{
"aliases": null,
"apiProfiles": null,
"apiVersions": null,
"capabilities": null,
"defaultApiVersion": null,
"locationMappings": null,
"locations": [
"eastus"
],
"properties": null,
"resourceType": "servers/databases",
"zoneMappings": null
},
{
"aliases": null,
"apiProfiles": null,
"apiVersions": null,
"capabilities": null,
"defaultApiVersion": null,
"locationMappings": null,
"locations": [
null
],
"properties": null,
"resourceType": "servers/firewallRules",
"zoneMappings": null
}
]
},
{
"id": null,
"namespace": "Microsoft.Storage",
"providerAuthorizationConsentState": null,
"registrationPolicy": null,
"registrationState": null,
"resourceTypes": [
{
"aliases": null,
"apiProfiles": null,
"apiVersions": null,
"capabilities": null,
"defaultApiVersion": null,
"locationMappings": null,
"locations": [
"eastus"
],
"properties": null,
"resourceType": "storageAccounts",
"zoneMappings": null
}
]
},
{
"id": null,
"namespace": "Microsoft.Authorization",
"providerAuthorizationConsentState": null,
"registrationPolicy": null,
"registrationState": null,
"resourceTypes": [
{
"aliases": null,
"apiProfiles": null,
"apiVersions": null,
"capabilities": null,
"defaultApiVersion": null,
"locationMappings": null,
"locations": [
null
],
"properties": null,
"resourceType": "roleAssignments",
"zoneMappings": null
}
]
},
{
"id": null,
"namespace": "Microsoft.Web",
"providerAuthorizationConsentState": null,
"registrationPolicy": null,
"registrationState": null,
"resourceTypes": [
{
"aliases": null,
"apiProfiles": null,
"apiVersions": null,
"capabilities": null,
"defaultApiVersion": null,
"locationMappings": null,
"locations": [
"eastus"
],
"properties": null,
"resourceType": "serverfarms",
"zoneMappings": null
},
{
"aliases": null,
"apiProfiles": null,
"apiVersions": null,
"capabilities": null,
"defaultApiVersion": null,
"locationMappings": null,
"locations": [
"eastus"
],
"properties": null,
"resourceType": "sites",
"zoneMappings": null
}
]
}
],
"provisioningState": "Succeeded",
"templateHash": "6864941083702817256",
"templateLink": null,
"timestamp": "2023-12-21T07:57:40.967779+00:00",
"validatedResources": null
},
"resourceGroup": "rgDataMigration",
"tags": null,
"type": "Microsoft.Resources/deployments"
}
------------------------
az deployment group create --resource-group rgDataMigration --template-file event-grid-rsg/RsgEventHubsDataMigration.bicep --parameters eventHubNamespaceName=rsgeventhubnamespace eventHubName=hubdatamigration sqlServerName=rsgsqlservername sqlServerUserName=rsgusername sqlServerPassword=Incektiplaktor4539 sqlServerDatabaseName=rsgdatabasename storageName=rsguniquestoragename functionAppName=rsgappname
/home/ridvan/az204/rsg_azure_tests/event-grid-rsg/RsgEventHubsDataMigration.bicep(31,31) : Warning no-loc-expr-outside-params: Use a parameter here instead of 'resourceGroup().location'. 'resourceGroup().location' and 'deployment().location' should only be used as a default value for parameters. [https://aka.ms/bicep/linter/no-loc-expr-outside-params]
/home/ridvan/az204/rsg_azure_tests/event-grid-rsg/RsgEventHubsDataMigration.bicep(152,3) : Warning BCP035: The specified "object" declaration is missing the following required properties: "status". If this is an inaccuracy in the documentation, please report it to the Bicep Team. [https://aka.ms/bicep-type-issues]
/home/ridvan/az204/rsg_azure_tests/event-grid-rsg/RsgEventHubsDataMigration.bicep(189,47) : Warning no-hardcoded-env-urls: Environment URLs should not be hardcoded. Use the environment() function to ensure compatibility across clouds. Found this disallowed host: "database.windows.net" [https://aka.ms/bicep/linter/no-hardcoded-env-urls]
{"status":"Failed","error":{"code":"DeploymentFailed",
"target":"/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Resources/deployments/RsgEventHubsDataMigration",
"message":"At least one resource deployment operation failed. Please list deployment operations for details.
Please see https://aka.ms/arm-deployment-operations for usage details.",
"details":[{"code":"InvalidTemplate","message":
"Unable to process template language expressions for resource '/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Authorization/roleAssignments/4f9bb405-f06d-51c0-b9d6-e50a8a25ec9e'
at line '164' and column '5'. 'Unable to evaluate template language function 'subscriptionResourceId': function requires exactly one multi-segmented argument which must be resource type including resource provider namespace. Current function arguments 'Microsoft.Authorization/roleDefinitions,Microsoft.Storage/storageAccounts/blobServices/containers/write'. Please see https://aka.ms/arm-resource-functions/#subscriptionresourceid for usage details.'","additionalInfo":[{"type":"TemplateViolation","info":{"lineNumber":164,"linePosition":5,"path":""}}]}]}}
----------------------
az deployment group create --resource-group rgDataMigration --template-file main/event-grid-rsg/RsgEventHubsDataMigration.bicep --parameters eventHubNa
mespaceName=rsgeventhubnamespace eventHubName=hubdatamigration sqlServerName=rsgsqlservername sqlServerUserName=rsgusername sqlServerPassword=Incektiplaktor453
9 sqlServerDatabaseName=rsgdatabasename storageName=rsguniquestoragename functionAppName=rsgappname
-
az deployment group create --resource-group rgDataMigration --template-file event-grid-rsg/RsgEventHubsDataMigration.bicep --parameters eventHubNamespaceName=rsgeventhubnamespace eventHubName=hubdatamigration sqlServerName=rsgsqlservername sqlServerUserName=rsgusername sqlServerPassword=Incektiplaktor4539 sqlServerDatabaseName=rsgdatabasename storageName=rsguniquestoragename functionAppName=rsgappname
-----------------
az deployment group create --resource-group rgDataMigration --template-uri https://raw.githubusercontent.com/ridvansg/rsg_azure_tests/main/event-grid-rsg/RsgEventHubsDataMigration.bicep --parameters eventHubNamespaceName=rsgeventhubnamespace eventHubName=hubdatamigration sqlServerName=rsgsqlservername sqlServerUserName=rsgusername sqlServerPassword=Incektiplaktor4539 sqlServerDatabaseName=rsgdatabasename storageName=rsguniquestoragename functionAppName=rsgappname
Failed to parse 'https://raw.githubusercontent.com/ridvansg/rsg_azure_tests/main/event-grid-rsg/RsgEventHubsDataMigration.bicep', please check whether it is a valid JSON format
----------------------
az deployment group create --resource-group rgDataMigration --template-uri https://raw.githubusercontent.com/ridvansg/rsg_azure_tests/main/event-grid-rsg/RsgEventHubsDataMigration.json --parameters eventHubNamespaceName=rsgeventhubnamespace eventHubName=hubdatamigration sqlServerName=rsgsqlservername sqlServerUserName=rsgusername sqlServerPassword=Incektiplaktor4539 sqlServerDatabaseName=rsgdatabasename storageName=rsguniquestoragename functionAppName=rsgappname
-----------------------------------------
az deployment group create --resource-group rgDataMigration --template-uri https://raw.githubusercontent.com/ridvansg/rsg_azure_tests/main/event-grid-rsg/RsgEventHubsDataMigration.json --parameters eventHubNamespaceName=rsgeventhubnamespace eventHubName=hubdatamigration sqlServerName=rsgsqlservername sqlServerUserName=rsgusername sqlServerPassword=Incektiplaktor4539 sqlServerDatabaseName=rsgdatabasename storageName=rsguniquestoragename functionAppName=rsgappname
{"status":"Failed","error":
{"code":"DeploymentFailed","target":"/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Resources/deployments/RsgEventHubsDataMigration",
"message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
"details":[{"code":"InvalidCreateRoleAssignmentRequest","message":"The request to create role assignment '4f9bb405-f06d-51c0-b9d6-e50a8a25ec9e' is not valid. Role assignment scope '/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Storage/storageAccounts/rsguniquestoragename' must match the scope specified on the URI '/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourcegroups/rgDataMigration'."}]}}
ridvan [ ~ ]$
-------------------------------------------
az deployment group create --resource-group rgDataMigration --template-uri https://raw.githubusercontent.com/ridvansg/rsg_azure_tests/main/event-grid-rsg/RsgEventHubsDataMigration.json --parameters eventHubNamespaceName=rsgeventhubnamespace eventHubName=hubdatamigration sqlServerName=rsgsqlservername sqlServerUserName=rsgusername sqlServerPassword=Incektiplaktor4539 sqlServerDatabaseName=rsgdatabasename storageName=rsguniquestoragename functionAppName=rsgappname
{"status":"Failed","error":{"code":"DeploymentFailed","target":
"/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Resources/deployments/RsgEventHubsDataMigration",
"message":"At least one resource deployment operation failed. Please list deployment operations for details.
Please see https://aka.ms/arm-deployment-operations for usage details.","details":
[{"code":"InvalidCreateRoleAssignmentRequest",
"message":"The request to create role assignment '4f9bb405-f06d-51c0-b9d6-e50a8a25ec9e' is not valid.
Role assignment scope
'/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Storage/storageAccounts/rsguniquestoragename' must match the scope specified on the URI
'/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourcegroups/rgDataMigration'."}]}}
----------------------------------------
{"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Resources/deployments/RsgEventHubsDataMigration","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"InvalidCreateRoleAssignmentRequest","message":"The request to create role assignment '4f9bb405-f06d-51c0-b9d6-e50a8a25ec9e' is not valid. Role assignment scope '/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Storage/storageAccounts/rsguniquestoragename' must match the scope specified on the URI '/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourcegroups/rgDataMigration'."}]}}
----------------------------------------
{"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Resources/deployments/RsgEventHubsDataMigration","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"InvalidCreateRoleAssignmentRequest","message":"The request to create role assignment '4f9bb405-f06d-51c0-b9d6-e50a8a25ec9e' is not valid. Role assignment scope '/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourcegroups/rgDataMigration/providers/Microsoft.Storage/storageAccounts/rsguniquestoragename' must match the scope specified on the URI '/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourcegroups/rgDataMigration'."}]}}
-------------------------------
{"status":"Failed","error":{"code":"DeploymentFailed",
"target":"/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Resources/deployments/RsgEventHubsDataMigration",
"message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
"details":[{"code":"InvalidCreateRoleAssignmentRequest","message":
"The request to create role assignment '4f9bb405-f06d-51c0-b9d6-e50a8a25ec9e' is not valid.
Role assignment scope '/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Storage/storageAccounts/rsguniquestoragename'
must match the scope specified on the URI '/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourcegroups/rgDataMigration'."}]}}
----------------------------------
{"status":"Failed","error":{"code":"DeploymentFailed",
"target":"/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Resources/deployments/RsgEventHubsDataMigration","message":
"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
"details":[{"code":"InvalidRoleAssignmentId","message":
"The role assignment ID 'rsgRoleAssignmentNameContainersWrite' is not valid. The role assignment ID must be a GUID."}]}}
------------------------------------
{"status":"Failed","error":{"code":"DeploymentFailed",
"target":"/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Resources/deployments/RsgEventHubsDataMigration"
,"message":"At least one resource deployment operation failed. Please list deployment operations for details.
Please see https://aka.ms/arm-deployment-operations for usage details.",
"details":[{"code":"MessagingGatewayBadRequest","message":"SubCode=40000. Generic:
Linked access check failed for capture storage destination /subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Storage/storageAccounts/rsguniquestoragename.
User or the application with object id c1d5bfd7-b4fa-48c7-ae62-6984d0bfb4e3 making the request doesn't have the required data plane write permissions.
Please enable Microsoft.Storage/storageAccounts/blobServices/containers/write, Microsoft.Storage/storageAccounts/blobServices/containers/blobs/write permission(s) on above resource for the user or the application and retry.
TrackingId:45d309cc-d670-4946-8cb6-bc194af2c899_G30, SystemTracker:rsgeventhubnamespace.servicebus.windows.net:hubdatamigration, Timestamp:2023-12-18T19:52:43"},{"code":"NoRegisteredProviderFound","message":"No registered resource provider found for location 'eastus' and API version '2022-04-01' for type 'storageAccounts'. The supported api-versions are '2023-04-01, 2023-01-01, 2022-09-01, 2022-05-01, 2021-09-01, 2021-08-01, 2021-06-01, 2021-05-01, 2021-04-01, 2021-02-01, 2021-01-01, 2020-08-01-preview, 2019-06-01, 2019-04-01, 2018-11-01, 2018-07-01, 2018-03-01-preview, 2018-02-01, 2017-10-01, 2017-06-01, 2016-12-01, 2016-05-01, 2016-01-01, 2015-06-15, 2015-05-01-preview'. The supported locations are 'eastus, eastus2, westus, westeurope, eastasia, southeastasia, japaneast, japanwest, northcentralus, southcentralus, centralus, northeurope, brazilsouth, australiaeast, australiasoutheast, southindia, centralindia, westindia, canadaeast, canadacentral, westus2, westcentralus, uksouth, ukwest, koreacentral, koreasouth, francecentral, australiacentral, southafricanorth, uaenorth, switzerlandnorth, germanywestcentral, norwayeast, westus3, jioindiawest, swedencentral, qatarcentral, polandcentral, italynorth, israelcentral'."},{"code":"NoRegisteredProviderFound","message":"No registered resource provider found for location 'eastus' and API version '2022-04-01' for type 'storageAccounts'. The supported api-versions are '2023-04-01, 2023-01-01, 2022-09-01, 2022-05-01, 2021-09-01, 2021-08-01, 2021-06-01, 2021-05-01, 2021-04-01, 2021-02-01, 2021-01-01, 2020-08-01-preview, 2019-06-01, 2019-04-01, 2018-11-01, 2018-07-01, 2018-03-01-preview, 2018-02-01, 2017-10-01, 2017-06-01, 2016-12-01, 2016-05-01, 2016-01-01, 2015-06-15, 2015-05-01-preview'. The supported locations are 'eastus, eastus2, westus, westeurope, eastasia, southeastasia, japaneast, japanwest, northcentralus, southcentralus, centralus, northeurope, brazilsouth, australiaeast, australiasoutheast, southindia, centralindia, westindia, canadaeast, canadacentral, westus2, westcentralus, uksouth, ukwest, koreacentral, koreasouth, francecentral, australiacentral, southafricanorth, uaenorth, switzerlandnorth, germanywestcentral, norwayeast, westus3, jioindiawest, swedencentral, qatarcentral, polandcentral, italynorth, israelcentral'."}]}}
---------------------------------
{"status":"Failed","error":
{"code":"DeploymentFailed",
"target":"/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Resources/deployments/RsgEventHubsDataMigration",
"message":"At least one resource deployment operation failed. Please list deployment operations for details.
Please see https://aka.ms/arm-deployment-operations for usage details.",
"details":[{"code":"MessagingGatewayBadRequest","message":"SubCode=40000.
Generic: Linked access check failed for capture storage destination /subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Storage/storageAccounts/rsguniquestoragename.
User or the application with object id c1d5bfd7-b4fa-48c7-ae62-6984d0bfb4e3 making the request doesn't have the required data plane write permissions.
Please enable
Microsoft.Storage/storageAccounts/blobServices/containers/write,
Microsoft.Storage/storageAccounts/blobServices/containers/blobs/write permission(s) on above resource for the user or the application and retry.
TrackingId:ec9ed9b2-d490-42c2-9580-6ef579bb4be7_G11, SystemTracker:rsgeventhubnamespace.servicebus.windows.net:hubdatamigration, Timestamp:2023-12-18T07:34:07"},{"code":"NoRegisteredProviderFound","message":"No registered resource provider found for location 'eastus' and API version '2022-04-01' for type 'storageAccounts'. The supported api-versions are '2023-04-01, 2023-01-01, 2022-09-01, 2022-05-01, 2021-09-01, 2021-08-01, 2021-06-01, 2021-05-01, 2021-04-01, 2021-02-01, 2021-01-01, 2020-08-01-preview, 2019-06-01, 2019-04-01, 2018-11-01, 2018-07-01, 2018-03-01-preview, 2018-02-01, 2017-10-01, 2017-06-01, 2016-12-01, 2016-05-01, 2016-01-01, 2015-06-15, 2015-05-01-preview'. The supported locations are 'eastus, eastus2, westus, westeurope, eastasia, southeastasia, japaneast, japanwest, northcentralus, southcentralus, centralus, northeurope, brazilsouth, australiaeast, australiasoutheast, southindia, centralindia, westindia, canadaeast, canadacentral, westus2, westcentralus, uksouth, ukwest, koreacentral, koreasouth, francecentral, australiacentral, southafricanorth, uaenorth, switzerlandnorth, germanywestcentral, norwayeast, westus3, jioindiawest, swedencentral, qatarcentral, polandcentral, italynorth, israelcentral'."},{"code":"NoRegisteredProviderFound","message":"No registered resource provider found for location 'eastus' and API version '2022-04-01' for type 'storageAccounts'. The supported api-versions are '2023-04-01, 2023-01-01, 2022-09-01, 2022-05-01, 2021-09-01, 2021-08-01, 2021-06-01, 2021-05-01, 2021-04-01, 2021-02-01, 2021-01-01, 2020-08-01-preview, 2019-06-01, 2019-04-01, 2018-11-01, 2018-07-01, 2018-03-01-preview, 2018-02-01, 2017-10-01, 2017-06-01, 2016-12-01, 2016-05-01, 2016-01-01, 2015-06-15, 2015-05-01-preview'. The supported locations are 'eastus, eastus2, westus, westeurope, eastasia, southeastasia, japaneast, japanwest, northcentralus, southcentralus, centralus, northeurope, brazilsouth, australiaeast, australiasoutheast, southindia, centralindia, westindia, canadaeast, canadacentral, westus2, westcentralus, uksouth, ukwest, koreacentral, koreasouth, francecentral, australiacentral, southafricanorth, uaenorth, switzerlandnorth, germanywestcentral, norwayeast, westus3, jioindiawest, swedencentral, qatarcentral, polandcentral, italynorth, israelcentral'."}]}}
-------------------------------
{"code": "InvalidTemplate", "message": "Deployment template validation failed:
'The template resource 'rsguniquestoragename/readRole' for type 'Microsoft.Authorization/roleAssignments' at line '163' and column '55' has incorrect segment lengths. A nested resource type must have identical number of segments as its resource name. A root resource type must have segment length one greater than its resource name. Please see https://aka.ms/arm-syntax-resources for usage details.'.", "additionalInfo": [{"type": "TemplateViolation", "info": {"lineNumber": 163, "linePosition": 55, "path": "resources[3].type"}}]}
------------------------------
az deployment group create --resource-group rgDataMigration --template-uri https://raw.githubusercontent.com/ridvansg/rsg_azure_tests/main/event-grid-rsg/RsgEventHubsDataMigration.json --parameters eventHubNamespaceName=rsgeventhubnamespace eventHubName=hubdatamigration sqlServerName=rsgsqlservername sqlServerUserName=rsgusername sqlServerPassword=Incektiplaktor4539 sqlServerDatabaseName=rsgdatabasename storageName=rsguniquestoragename functionAppName=rsgappname
{"code": "InvalidTemplate", "message": "Deployment template validation failed: 'The template resource 'rsguniquestoragename/default/Microsoft.Authorization/NEW-GUID' for type 'Microsoft.Authorization/roleAssignments' at line '163' and column '55' has incorrect segment lengths. A nested resource type must have identical number of segments as its resource name. A root resource type must have segment length one greater than its resource name. Please see https://aka.ms/arm-syntax-resources for usage details.'.", "additionalInfo": [{"type": "TemplateViolation", "info": {"lineNumber": 163, "linePosition": 55, "path": "resources[3].type"}}]}
------------------------------
az deployment group create --resource-group rgDataMigration --template-uri https://raw.githubusercontent.com/ridvansg/rsg_azure_tests/main/event-grid-rsg/RsgEventHubsDataMigration.json --parameters eventHubNamespaceName=rsgeventhubnamespace eventHubName=hubdatamigration sqlServerName=rsgsqlservername sqlServerUserName=rsgusername sqlServerPassword=Incektiplaktor4539 sqlServerDatabaseName=rsgdatabasename storageName=rsguniquestoragename functionAppName=rsgappname
{"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Resources/deployments/RsgEventHubsDataMigration","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"MessagingGatewayBadRequest","message":"SubCode=40000. Generic: Linked access check failed for capture storage destination /subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Storage/storageAccounts/rsguniquestoragename. User or the application with object id c1d5bfd7-b4fa-48c7-ae62-6984d0bfb4e3 making the request doesn't have the required data plane write permissions. Please enable Microsoft.Storage/storageAccounts/blobServices/containers/write, Microsoft.Storage/storageAccounts/blobServices/containers/blobs/write permission(s) on above resource for the user or the application and retry. TrackingId:bcb31c66-ce7e-4131-a563-7167dff05d99_G38, SystemTracker:rsgeventhubnamespace.servicebus.windows.net:hubdatamigration, Timestamp:2023-12-17T16:48:03"}]}}
----------------------------
az deployment group create --resource-group rgDataMigration --template-uri https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/event-grid/EventHubsDataMigration.json --parameters eventHubNamespaceName=rsgeventhubnamespace eventHubName=hubdatamigration sqlServerName=rsgsqlservername sqlServerUserName=rsgusername sqlServerPassword=Incektiplaktor4539 sqlServerDatabaseName=rsgdatabasename storageName=rsguniquestoragename functionAppName=rsgappname
{"status":"Failed","error":
{"code":"DeploymentFailed",
"target":"/subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Resources/deployments/EventHubsDataMigration",
"message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
"details":[
{
"code":"MessagingGatewayBadRequest",
"message":"SubCode=40000. Generic: Linked access check failed for capture
storage destination /subscriptions/cafb95de-39ce-4f0d-a9fe-db89b93c7ea2/resourceGroups/rgDataMigration/providers/Microsoft.Storage/storageAccounts/rsguniquestoragename.
User or the application with object id c1d5bfd7-b4fa-48c7-ae62-6984d0bfb4e3 making the request doesn't have the required data plane write permissions.
Please enable Microsoft.Storage/storageAccounts/blobServices/containers/write, Microsoft.Storage/storageAccounts/blobServices/containers/blobs/write permission(s) on above resource for the user or the application and retry.
TrackingId:a17067bc-7660-44b4-a2fe-420e9262d61c_G15, SystemTracker:rsgeventhubnamespace.servicebus.windows.net:hubdatamigration, Timestamp:2023-12-17T09:11:57"}]}}
enable read and write permissions of User ridvansg to storage storageName ("rsguniquestoragename")