Skip to content

Commit e2364c9

Browse files
committed
fix: update roleDefinitionIdOrName values to use GUIDs for Storage and Search roles
1 parent 0c35778 commit e2364c9

3 files changed

Lines changed: 33 additions & 33 deletions

File tree

infra/main.bicep

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1604,12 +1604,12 @@ module avmStorageAccount 'br/public:avm/res/storage/storage-account:0.32.0' = {
16041604
roleAssignments: [
16051605
{
16061606
principalId: userAssignedIdentity.outputs.principalId
1607-
roleDefinitionIdOrName: 'Storage Blob Data Contributor'
1607+
roleDefinitionIdOrName: 'ba92f5b4-2d11-453d-a403-e96b0029c9fe' // Storage Blob Data Contributor
16081608
principalType: 'ServicePrincipal'
16091609
}
16101610
{
16111611
principalId: deployingUserPrincipalId
1612-
roleDefinitionIdOrName: 'Storage Blob Data Contributor'
1612+
roleDefinitionIdOrName: 'ba92f5b4-2d11-453d-a403-e96b0029c9fe' // Storage Blob Data Contributor
16131613
principalType: deployerPrincipalType
16141614
}
16151615
]
@@ -1732,22 +1732,22 @@ module searchServiceUpdate 'br/public:avm/res/search/search-service:0.12.0' = {
17321732
roleAssignments: [
17331733
{
17341734
principalId: userAssignedIdentity.outputs.principalId
1735-
roleDefinitionIdOrName: 'Search Index Data Contributor'
1735+
roleDefinitionIdOrName: '8ebe5a00-799e-43f5-93ac-243d3dce84a7' // Search Index Data Contributor
17361736
principalType: 'ServicePrincipal'
17371737
}
17381738
{
17391739
principalId: deployingUserPrincipalId
1740-
roleDefinitionIdOrName: 'Search Index Data Contributor'
1740+
roleDefinitionIdOrName: '8ebe5a00-799e-43f5-93ac-243d3dce84a7' // Search Index Data Contributor
17411741
principalType: deployerPrincipalType
17421742
}
17431743
{
17441744
principalId: aiFoundryAiProjectPrincipalId
1745-
roleDefinitionIdOrName: 'Search Index Data Reader'
1745+
roleDefinitionIdOrName: '1407120a-92aa-4202-b7e9-c0e197c71c8f' // Search Index Data Reader
17461746
principalType: 'ServicePrincipal'
17471747
}
17481748
{
17491749
principalId: aiFoundryAiProjectPrincipalId
1750-
roleDefinitionIdOrName: 'Search Service Contributor'
1750+
roleDefinitionIdOrName: '7ca78c08-252a-4471-8644-bb5ff32d4ba0' // Search Service Contributor
17511751
principalType: 'ServicePrincipal'
17521752
}
17531753
]

infra/main.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"metadata": {
66
"_generator": {
77
"name": "bicep",
8-
"version": "0.43.8.12551",
9-
"templateHash": "6587818059632090787"
8+
"version": "0.44.1.10279",
9+
"templateHash": "6213053748074171937"
1010
},
1111
"name": "Multi-Agent Custom Automation Engine",
1212
"description": "This module contains the resources required to deploy the [Multi-Agent Custom Automation Engine solution accelerator](https://github.com/microsoft/Multi-Agent-Custom-Automation-Engine-Solution-Accelerator) for both Sandbox environments and WAF aligned environments.\n\n> **Note:** This module is not intended for broad, generic use, as it was designed by the Commercial Solution Areas CTO team, as a Microsoft Solution Accelerator. Feature requests and bug fix requests are welcome if they support the needs of this organization but may not be incorporated if they aim to make this module more generic than what it needs to be for its primary use case. This module will likely be updated to leverage AVM resource modules in the future. This may result in breaking changes in upcoming versions when these features are implemented.\n"
@@ -4992,8 +4992,8 @@
49924992
"metadata": {
49934993
"_generator": {
49944994
"name": "bicep",
4995-
"version": "0.43.8.12551",
4996-
"templateHash": "9540091515555271756"
4995+
"version": "0.44.1.10279",
4996+
"templateHash": "16578961703143216826"
49974997
}
49984998
},
49994999
"definitions": {
@@ -24310,8 +24310,8 @@
2431024310
"metadata": {
2431124311
"_generator": {
2431224312
"name": "bicep",
24313-
"version": "0.43.8.12551",
24314-
"templateHash": "7866379492866507946"
24313+
"version": "0.44.1.10279",
24314+
"templateHash": "9937220877261080488"
2431524315
}
2431624316
},
2431724317
"definitions": {
@@ -27976,8 +27976,8 @@
2797627976
"dependsOn": [
2797727977
"aiFoundryAiServices",
2797827978
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
27979-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
2798027979
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
27980+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
2798127981
"virtualNetwork"
2798227982
]
2798327983
},
@@ -28014,8 +28014,8 @@
2801428014
"metadata": {
2801528015
"_generator": {
2801628016
"name": "bicep",
28017-
"version": "0.43.8.12551",
28018-
"templateHash": "2868048678223903575"
28017+
"version": "0.44.1.10279",
28018+
"templateHash": "8001462637037527844"
2801928019
}
2802028020
},
2802128021
"parameters": {
@@ -42569,8 +42569,8 @@
4256942569
"metadata": {
4257042570
"_generator": {
4257142571
"name": "bicep",
42572-
"version": "0.43.8.12551",
42573-
"templateHash": "18345308984648474640"
42572+
"version": "0.44.1.10279",
42573+
"templateHash": "7693002176758630395"
4257442574
}
4257542575
},
4257642576
"definitions": {
@@ -43601,8 +43601,8 @@
4360143601
"metadata": {
4360243602
"_generator": {
4360343603
"name": "bicep",
43604-
"version": "0.43.8.12551",
43605-
"templateHash": "1009721598684973971"
43604+
"version": "0.44.1.10279",
43605+
"templateHash": "16045336481224683590"
4360643606
},
4360743607
"name": "Site App Settings",
4360843608
"description": "This module deploys a Site App Setting."
@@ -44525,12 +44525,12 @@
4452544525
"value": [
4452644526
{
4452744527
"principalId": "[reference('userAssignedIdentity').outputs.principalId.value]",
44528-
"roleDefinitionIdOrName": "Storage Blob Data Contributor",
44528+
"roleDefinitionIdOrName": "ba92f5b4-2d11-453d-a403-e96b0029c9fe",
4452944529
"principalType": "ServicePrincipal"
4453044530
},
4453144531
{
4453244532
"principalId": "[variables('deployingUserPrincipalId')]",
44533-
"roleDefinitionIdOrName": "Storage Blob Data Contributor",
44533+
"roleDefinitionIdOrName": "ba92f5b4-2d11-453d-a403-e96b0029c9fe",
4453444534
"principalType": "[variables('deployerPrincipalType')]"
4453544535
}
4453644536
]
@@ -52753,22 +52753,22 @@
5275352753
"value": [
5275452754
{
5275552755
"principalId": "[reference('userAssignedIdentity').outputs.principalId.value]",
52756-
"roleDefinitionIdOrName": "Search Index Data Contributor",
52756+
"roleDefinitionIdOrName": "8ebe5a00-799e-43f5-93ac-243d3dce84a7",
5275752757
"principalType": "ServicePrincipal"
5275852758
},
5275952759
{
5276052760
"principalId": "[variables('deployingUserPrincipalId')]",
52761-
"roleDefinitionIdOrName": "Search Index Data Contributor",
52761+
"roleDefinitionIdOrName": "8ebe5a00-799e-43f5-93ac-243d3dce84a7",
5276252762
"principalType": "[variables('deployerPrincipalType')]"
5276352763
},
5276452764
{
5276552765
"principalId": "[if(variables('useExistingAiFoundryAiProject'), reference('existingAiFoundryAiServicesProject', '2025-12-01', 'full').identity.principalId, reference('aiFoundryAiServicesProject').outputs.principalId.value)]",
52766-
"roleDefinitionIdOrName": "Search Index Data Reader",
52766+
"roleDefinitionIdOrName": "1407120a-92aa-4202-b7e9-c0e197c71c8f",
5276752767
"principalType": "ServicePrincipal"
5276852768
},
5276952769
{
5277052770
"principalId": "[if(variables('useExistingAiFoundryAiProject'), reference('existingAiFoundryAiServicesProject', '2025-12-01', 'full').identity.principalId, reference('aiFoundryAiServicesProject').outputs.principalId.value)]",
52771-
"roleDefinitionIdOrName": "Search Service Contributor",
52771+
"roleDefinitionIdOrName": "7ca78c08-252a-4471-8644-bb5ff32d4ba0",
5277252772
"principalType": "ServicePrincipal"
5277352773
}
5277452774
]
@@ -54851,8 +54851,8 @@
5485154851
"metadata": {
5485254852
"_generator": {
5485354853
"name": "bicep",
54854-
"version": "0.43.8.12551",
54855-
"templateHash": "9739523049889844356"
54854+
"version": "0.44.1.10279",
54855+
"templateHash": "1221855634359106261"
5485654856
}
5485754857
},
5485854858
"parameters": {

infra/main_custom.bicep

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,12 +1656,12 @@ module avmStorageAccount 'br/public:avm/res/storage/storage-account:0.32.0' = {
16561656
roleAssignments: [
16571657
{
16581658
principalId: userAssignedIdentity.outputs.principalId
1659-
roleDefinitionIdOrName: 'Storage Blob Data Contributor'
1659+
roleDefinitionIdOrName: 'ba92f5b4-2d11-453d-a403-e96b0029c9fe' // Storage Blob Data Contributor
16601660
principalType: 'ServicePrincipal'
16611661
}
16621662
{
16631663
principalId: deployingUserPrincipalId
1664-
roleDefinitionIdOrName: 'Storage Blob Data Contributor'
1664+
roleDefinitionIdOrName: 'ba92f5b4-2d11-453d-a403-e96b0029c9fe' // Storage Blob Data Contributor
16651665
principalType: deployerPrincipalType
16661666
}
16671667
]
@@ -1785,22 +1785,22 @@ module searchServiceUpdate 'br/public:avm/res/search/search-service:0.12.0' = {
17851785
roleAssignments: [
17861786
{
17871787
principalId: userAssignedIdentity.outputs.principalId
1788-
roleDefinitionIdOrName: 'Search Index Data Contributor'
1788+
roleDefinitionIdOrName: '8ebe5a00-799e-43f5-93ac-243d3dce84a7' // Search Index Data Contributor
17891789
principalType: 'ServicePrincipal'
17901790
}
17911791
{
17921792
principalId: deployingUserPrincipalId
1793-
roleDefinitionIdOrName: 'Search Index Data Contributor'
1793+
roleDefinitionIdOrName: '8ebe5a00-799e-43f5-93ac-243d3dce84a7' // Search Index Data Contributor
17941794
principalType: deployerPrincipalType
17951795
}
17961796
{
17971797
principalId: aiFoundryAiProjectPrincipalId
1798-
roleDefinitionIdOrName: 'Search Index Data Reader'
1798+
roleDefinitionIdOrName: '1407120a-92aa-4202-b7e9-c0e197c71c8f' // Search Index Data Reader
17991799
principalType: 'ServicePrincipal'
18001800
}
18011801
{
18021802
principalId: aiFoundryAiProjectPrincipalId
1803-
roleDefinitionIdOrName: 'Search Service Contributor'
1803+
roleDefinitionIdOrName: '7ca78c08-252a-4471-8644-bb5ff32d4ba0' // Search Service Contributor
18041804
principalType: 'ServicePrincipal'
18051805
}
18061806
]

0 commit comments

Comments
 (0)