Skip to content

Commit 27bc158

Browse files
committed
fixing module names
1 parent 200e342 commit 27bc158

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

samples/microsoft/infrastructure-setup/41-standard-agent-setup/azuredeploy.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.35.1.17967",
8-
"templateHash": "3238454214624215890"
8+
"templateHash": "4768679139946314715"
99
}
1010
},
1111
"parameters": {
@@ -912,7 +912,7 @@
912912
{
913913
"type": "Microsoft.Resources/deployments",
914914
"apiVersion": "2022-09-01",
915-
"name": "[format('cosmos-account-role-assignments-{0}-{1}-deployment', variables('projectName'), variables('uniqueSuffix'))]",
915+
"name": "[format('cosmos-account-role-assignments-{0}-deployment', variables('uniqueSuffix'))]",
916916
"subscriptionId": "[variables('cosmosDBSubscriptionId')]",
917917
"resourceGroup": "[variables('cosmosDBResourceGroupName')]",
918918
"properties": {
@@ -976,7 +976,7 @@
976976
{
977977
"type": "Microsoft.Resources/deployments",
978978
"apiVersion": "2022-09-01",
979-
"name": "[format('ai-search-role-assignments-{0}-{1}-deployment', variables('projectName'), variables('uniqueSuffix'))]",
979+
"name": "[format('ai-search-role-assignments-{0}-deployment', variables('uniqueSuffix'))]",
980980
"subscriptionId": "[variables('aiSearchServiceSubscriptionId')]",
981981
"resourceGroup": "[variables('aiSearchServiceResourceGroupName')]",
982982
"properties": {
@@ -1045,14 +1045,14 @@
10451045
"dependsOn": [
10461046
"[resourceId('Microsoft.Resources/deployments', format('dependencies-{0}-{1}-deployment', variables('accountName'), variables('uniqueSuffix')))]",
10471047
"[resourceId('Microsoft.Resources/deployments', format('ai-{0}-{1}-deployment', variables('projectName'), variables('uniqueSuffix')))]",
1048-
"[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', variables('cosmosDBSubscriptionId'), variables('cosmosDBResourceGroupName')), 'Microsoft.Resources/deployments', format('cosmos-account-role-assignments-{0}-{1}-deployment', variables('projectName'), variables('uniqueSuffix')))]",
1048+
"[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', variables('cosmosDBSubscriptionId'), variables('cosmosDBResourceGroupName')), 'Microsoft.Resources/deployments', format('cosmos-account-role-assignments-{0}-deployment', variables('uniqueSuffix')))]",
10491049
"[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', variables('azureStorageSubscriptionId'), variables('azureStorageResourceGroupName')), 'Microsoft.Resources/deployments', format('storage-{0}-{1}-deployment', variables('azureStorageName'), variables('uniqueSuffix')))]"
10501050
]
10511051
},
10521052
{
10531053
"type": "Microsoft.Resources/deployments",
10541054
"apiVersion": "2022-09-01",
1055-
"name": "[format('capabilityHost-configuration-{0}-{1}-deployment', variables('projectName'), variables('uniqueSuffix'))]",
1055+
"name": "[format('capabilityHost-configuration-{0}-deployment', variables('uniqueSuffix'))]",
10561056
"properties": {
10571057
"expressionEvaluationOptions": {
10581058
"scope": "inner"
@@ -1154,8 +1154,8 @@
11541154
"dependsOn": [
11551155
"[resourceId('Microsoft.Resources/deployments', format('ai-{0}-{1}-deployment', variables('accountName'), variables('uniqueSuffix')))]",
11561156
"[resourceId('Microsoft.Resources/deployments', format('ai-{0}-{1}-deployment', variables('projectName'), variables('uniqueSuffix')))]",
1157-
"[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', variables('aiSearchServiceSubscriptionId'), variables('aiSearchServiceResourceGroupName')), 'Microsoft.Resources/deployments', format('ai-search-role-assignments-{0}-{1}-deployment', variables('projectName'), variables('uniqueSuffix')))]",
1158-
"[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', variables('cosmosDBSubscriptionId'), variables('cosmosDBResourceGroupName')), 'Microsoft.Resources/deployments', format('cosmos-account-role-assignments-{0}-{1}-deployment', variables('projectName'), variables('uniqueSuffix')))]",
1157+
"[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', variables('aiSearchServiceSubscriptionId'), variables('aiSearchServiceResourceGroupName')), 'Microsoft.Resources/deployments', format('ai-search-role-assignments-{0}-deployment', variables('uniqueSuffix')))]",
1158+
"[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', variables('cosmosDBSubscriptionId'), variables('cosmosDBResourceGroupName')), 'Microsoft.Resources/deployments', format('cosmos-account-role-assignments-{0}-deployment', variables('uniqueSuffix')))]",
11591159
"[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', variables('azureStorageSubscriptionId'), variables('azureStorageResourceGroupName')), 'Microsoft.Resources/deployments', format('storage-{0}-{1}-deployment', variables('azureStorageName'), variables('uniqueSuffix')))]"
11601160
]
11611161
},
@@ -1252,7 +1252,7 @@
12521252
}
12531253
},
12541254
"dependsOn": [
1255-
"[resourceId('Microsoft.Resources/deployments', format('capabilityHost-configuration-{0}-{1}-deployment', variables('projectName'), variables('uniqueSuffix')))]",
1255+
"[resourceId('Microsoft.Resources/deployments', format('capabilityHost-configuration-{0}-deployment', variables('uniqueSuffix')))]",
12561256
"[resourceId('Microsoft.Resources/deployments', format('dependencies-{0}-{1}-deployment', variables('accountName'), variables('uniqueSuffix')))]",
12571257
"[resourceId('Microsoft.Resources/deployments', format('ai-{0}-{1}-deployment', variables('projectName'), variables('uniqueSuffix')))]"
12581258
]
@@ -1286,7 +1286,7 @@
12861286
"_generator": {
12871287
"name": "bicep",
12881288
"version": "0.35.1.17967",
1289-
"templateHash": "5181953434548371888"
1289+
"templateHash": "372715190929198794"
12901290
}
12911291
},
12921292
"parameters": {
@@ -1317,7 +1317,7 @@
13171317
"type": "Microsoft.Authorization/roleAssignments",
13181318
"apiVersion": "2022-04-01",
13191319
"scope": "[format('Microsoft.Storage/storageAccounts/{0}', parameters('storageName'))]",
1320-
"name": "[guid(resourceId('Microsoft.Authorization/roleDefinitions', 'b7e6dc6d-f1e8-4753-8033-0f276bb0955b'), resourceId('Microsoft.Storage/storageAccounts', parameters('storageName')), parameters('aiProjectPrincipalId'), parameters('workspaceId'))]",
1320+
"name": "[guid(resourceId('Microsoft.Storage/storageAccounts', parameters('storageName')), parameters('aiProjectPrincipalId'), resourceId('Microsoft.Authorization/roleDefinitions', 'b7e6dc6d-f1e8-4753-8033-0f276bb0955b'), parameters('workspaceId'))]",
13211321
"properties": {
13221322
"principalId": "[parameters('aiProjectPrincipalId')]",
13231323
"roleDefinitionId": "[resourceId('Microsoft.Authorization/roleDefinitions', 'b7e6dc6d-f1e8-4753-8033-0f276bb0955b')]",
@@ -1330,10 +1330,10 @@
13301330
}
13311331
},
13321332
"dependsOn": [
1333-
"[resourceId('Microsoft.Resources/deployments', format('capabilityHost-configuration-{0}-{1}-deployment', variables('projectName'), variables('uniqueSuffix')))]",
1333+
"[resourceId('Microsoft.Resources/deployments', format('capabilityHost-configuration-{0}-deployment', variables('uniqueSuffix')))]",
13341334
"[resourceId('Microsoft.Resources/deployments', format('dependencies-{0}-{1}-deployment', variables('accountName'), variables('uniqueSuffix')))]",
13351335
"[resourceId('Microsoft.Resources/deployments', format('ai-{0}-{1}-deployment', variables('projectName'), variables('uniqueSuffix')))]"
13361336
]
13371337
}
13381338
]
1339-
}
1339+
}

samples/microsoft/infrastructure-setup/41-standard-agent-setup/main.bicep

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ module storageAccountRoleAssignment 'modules-standard/azure-storage-account-role
178178

179179
// The Comos DB Operator role must be assigned before the caphost is created
180180
module cosmosAccountRoleAssignments 'modules-standard/cosmosdb-account-role-assignment.bicep' = {
181-
name: 'cosmos-account-role-assignments-${projectName}-${uniqueSuffix}-deployment'
181+
name: 'cosmos-account-role-assignments-${uniqueSuffix}-deployment'
182182
scope: resourceGroup(cosmosDBSubscriptionId, cosmosDBResourceGroupName)
183183
params: {
184184
cosmosDBName: aiDependencies.outputs.cosmosDBName
@@ -192,7 +192,7 @@ module cosmosAccountRoleAssignments 'modules-standard/cosmosdb-account-role-assi
192192

193193
// This role can be assigned before or after the caphost is created
194194
module aiSearchRoleAssignments 'modules-standard/ai-search-role-assignments.bicep' = {
195-
name: 'ai-search-role-assignments-${projectName}-${uniqueSuffix}-deployment'
195+
name: 'ai-search-role-assignments-${uniqueSuffix}-deployment'
196196
scope: resourceGroup(aiSearchServiceSubscriptionId, aiSearchServiceResourceGroupName)
197197
params: {
198198
aiSearchName: aiDependencies.outputs.aiSearchName
@@ -204,7 +204,7 @@ module aiSearchRoleAssignments 'modules-standard/ai-search-role-assignments.bice
204204
}
205205

206206
module addProjectCapabilityHost 'modules-standard/add-project-capability-host.bicep' = {
207-
name: 'capabilityHost-configuration-${projectName}-${uniqueSuffix}-deployment'
207+
name: 'capabilityHost-configuration-${uniqueSuffix}-deployment'
208208
params: {
209209
accountName: aiAccount.outputs.accountName
210210
projectName: aiProject.outputs.projectName

samples/microsoft/infrastructure-setup/41-standard-agent-setup/modules-standard/blob-storage-container-role-assignments.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var conditionStr= '((!(ActionMatches{\'Microsoft.Storage/storageAccounts/blobSer
2626
// Assign Storage Blob Data Owner role
2727
resource storageBlobDataOwnerAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
2828
scope: storage
29-
name: guid(storage.id, aiProjectPrincipalId)
29+
name: guid(storage.id, aiProjectPrincipalId, storageBlobDataOwner.id, workspaceId)
3030
properties: {
3131
principalId: aiProjectPrincipalId
3232
roleDefinitionId: storageBlobDataOwner.id

0 commit comments

Comments
 (0)