Skip to content

Commit

Permalink
Fix deployment script (#2364)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcschier authored Nov 11, 2024
1 parent 1a7d302 commit df450df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/templates/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@
"iotHubContributorRoleId": "[subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '4fc6c259-987e-4a07-842e-c321cc9d413f')]",
"iotHubPrincipalRoleAssignment": "[guid(parameters('iotHubName'), parameters('userPrincipalId'))]",
"iotHubRoleAssignment": "[guid(parameters('iotHubName'), parameters('managedIdentityName'))]",
"iotHubRoleAssignmentResourceId": "[resourceId('Microsoft.Resources/deployments', variables('iotHubRoleAssignment'))]",
"iotHubRoleAssignmentResourceId": "[tenantResourceId('Microsoft.Authorization/roleAssignments', variables('iotHubRoleAssignment'))]",
"iotHubKeyResource": "[resourceId('Microsoft.Devices/Iothubs/Iothubkeys', parameters('iotHubName'), variables('iotHubKeyName'))]",
"iothubTelemetryConsumerGroup": "telemetry",
"iothubEventsConsumerGroup": "events",
Expand All @@ -392,15 +392,15 @@
"storagePrincipalBlobDataOwnerRoleAssignment": "[guid(parameters('storageName'), 'StorageBlobDataOwner', parameters('userPrincipalId'))]",
"storagePrincipalStorageAccountContributorRoleAssignment": "[guid(parameters('storageName'), 'StorageAccountContributor', parameters('userPrincipalId'))]",
"storageRoleAssignment": "[guid(parameters('storageName'), parameters('managedIdentityName'))]",
"storageRoleAssignmentResourceId": "[resourceId('Microsoft.Resources/deployments', variables('storageRoleAssignment'))]",
"storageRoleAssignmentResourceId": "[tenantResourceId('Microsoft.Authorization/roleAssignments', variables('storageRoleAssignment'))]",
"keyVaultResourceId": "[resourceId('Microsoft.KeyVault/vaults', parameters('keyVaultName'))]",
"keyVaultSecretUserRoleId": "[subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'b86a8fe4-44ce-4948-aee5-eccb2c155cd7')]",
"keyVaultPrincipalRoleAssignment": "[guid(parameters('keyVaultName'), parameters('userPrincipalId'))]",
"keyVaultPrincipalAccessPolicy": { "tenantId": "[subscription().tenantId]", "objectId": "[parameters('userPrincipalId')]", "permissions": { "secrets": [ "all" ] }},
"keyVaultAccessPolicies": "[if(and(not(empty(parameters('userPrincipalId'))), parameters('keyVaultUseAccessPolicies')), createArray(variables('keyVaultPrincipalAccessPolicy')), createArray())]",
"keyVaultSecretOfficerRoleId": "[subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'b86a8fe4-44ce-4948-aee5-eccb2c155cd7')]",
"keyVaultRoleAssignment": "[guid(parameters('keyVaultName'), parameters('managedIdentityName'))]",
"keyVaultRoleAssignmentResourceId": "[resourceId('Microsoft.Resources/deployments', variables('keyVaultRoleAssignment'))]",
"keyVaultRoleAssignmentResourceId": "[tenantResourceId('Microsoft.Authorization/roleAssignments', variables('keyVaultRoleAssignment'))]",
"configurationResourceName": "[concat(deployment().name, '.configuration')]",
"configurationResourceId": "[resourceId('Microsoft.Resources/deployments', variables('configurationResourceName'))]",
"dpsResourceId": "[resourceId('Microsoft.Devices/provisioningServices', parameters('dpsName'))]",
Expand Down

0 comments on commit df450df

Please sign in to comment.