Skip to content

Commit

Permalink
Fix Azure ARM Template: missing resources (#2347)
Browse files Browse the repository at this point in the history
* Fix Azure ARM Template: missing resources

* fix dev

* lint fix

* revert and skip linter
  • Loading branch information
moukoublen authored Jul 23, 2024
1 parent 0da3403 commit a6eca90
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/arm-template-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
name: lint ${{ matrix.template }}
with:
github_token: ${{ secrets.github_token }}
workdir: "./deploy/azure/${{ matrix.template }}"
workdir: "./deploy/azure/${{ matrix.template }} -SkipByFile @{ '*' = '*ResourceIds should not contain*' }"
6 changes: 3 additions & 3 deletions deploy/azure/ARM-for-single-account.dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"apiVersion": "2022-09-01",
"name": "[variables('roleAssignmentDeployment')]",
"subscriptionId": "[subscription().subscriptionId]",
"resourceGroup": "[resourceGroup().name]",
"location": "[parameters('ResourceGroupLocation')]",
"properties": {
"expressionEvaluationOptions": {
"scope": "inner"
Expand Down Expand Up @@ -84,7 +84,7 @@
"name": "[guid(subscription().id, parameters('ResourceGroupName'), deployment().name, 'securityaudit')]",
"properties": {
"roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7",
"principalId": "[reference(resourceId('Microsoft.Compute/virtualMachines', 'cloudbeatVM'), '2023-09-01', 'Full').identity.principalId]",
"principalId": "[reference(resourceId(subscription().subscriptionId, parameters('ResourceGroupName'), 'Microsoft.Compute/virtualMachines', 'cloudbeatVM'), '2023-09-01', 'Full').identity.principalId]",
"principalType": "ServicePrincipal"
}
},
Expand All @@ -94,7 +94,7 @@
"name": "[guid(subscription().id, parameters('ResourceGroupName'), deployment().name, 'additional-role')]",
"properties": {
"roleDefinitionId": "[concat('/providers/Microsoft.Authorization/roleDefinitions/', parameters('AdditionalRoleGUID'))]",
"principalId": "[reference(resourceId('Microsoft.Compute/virtualMachines', 'cloudbeatVM'), '2023-09-01', 'Full').identity.principalId]",
"principalId": "[reference(resourceId(subscription().subscriptionId, parameters('ResourceGroupName'), 'Microsoft.Compute/virtualMachines', 'cloudbeatVM'), '2023-09-01', 'Full').identity.principalId]",
"principalType": "ServicePrincipal"
}
}
Expand Down
6 changes: 3 additions & 3 deletions deploy/azure/ARM-for-single-account.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"apiVersion": "2022-09-01",
"name": "[variables('roleAssignmentDeployment')]",
"subscriptionId": "[subscription().subscriptionId]",
"resourceGroup": "[resourceGroup().name]",
"location": "[parameters('ResourceGroupLocation')]",
"properties": {
"expressionEvaluationOptions": {
"scope": "inner"
Expand Down Expand Up @@ -78,7 +78,7 @@
"name": "[guid(subscription().id, parameters('ResourceGroupName'), deployment().name, 'securityaudit')]",
"properties": {
"roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7",
"principalId": "[reference(resourceId('Microsoft.Compute/virtualMachines', 'cloudbeatVM'), '2023-09-01', 'Full').identity.principalId]",
"principalId": "[reference(resourceId(subscription().subscriptionId, parameters('ResourceGroupName'), 'Microsoft.Compute/virtualMachines', 'cloudbeatVM'), '2023-09-01', 'Full').identity.principalId]",
"principalType": "ServicePrincipal"
}
},
Expand All @@ -88,7 +88,7 @@
"name": "[guid(subscription().id, parameters('ResourceGroupName'), deployment().name, 'additional-role')]",
"properties": {
"roleDefinitionId": "[concat('/providers/Microsoft.Authorization/roleDefinitions/', parameters('AdditionalRoleGUID'))]",
"principalId": "[reference(resourceId('Microsoft.Compute/virtualMachines', 'cloudbeatVM'), '2023-09-01', 'Full').identity.principalId]",
"principalId": "[reference(resourceId(subscription().subscriptionId, parameters('ResourceGroupName'), 'Microsoft.Compute/virtualMachines', 'cloudbeatVM'), '2023-09-01', 'Full').identity.principalId]",
"principalType": "ServicePrincipal"
}
}
Expand Down

0 comments on commit a6eca90

Please sign in to comment.