From fb48e9b6518e3378c09b4184d403dfb9c98085b7 Mon Sep 17 00:00:00 2001 From: vplauzon Date: Tue, 24 Oct 2023 14:08:49 -0400 Subject: [PATCH] Remove auto shutdown --- .../integration-test-infra-deploy.bicep | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/deployment/integration-test/integration-test-infra-deploy.bicep b/deployment/integration-test/integration-test-infra-deploy.bicep index 3b6c940..02e38c3 100644 --- a/deployment/integration-test/integration-test-infra-deploy.bicep +++ b/deployment/integration-test/integration-test-infra-deploy.bicep @@ -277,18 +277,18 @@ resource intTestDbs 'Microsoft.Kusto/clusters/databases@2022-12-29' = [for i in // } // Authorize WF as reader on resource group -var readerId = 'acdd72a7-3385-48ef-bd42-f606fba81ae7' -var fullReaderId = '/subscriptions/${subscription().subscriptionId}/providers/Microsoft.Authorization/roleDefinitions/${readerId}' -var rgRoleAssignmentName = '${resourceGroup().id}${autoShutdown.name}${fullReaderId}' +// var readerId = 'acdd72a7-3385-48ef-bd42-f606fba81ae7' +// var fullReaderId = '/subscriptions/${subscription().subscriptionId}/providers/Microsoft.Authorization/roleDefinitions/${readerId}' +// var rgRoleAssignmentName = '${resourceGroup().id}${autoShutdown.name}${fullReaderId}' -resource autoShutdownRgAuthorization 'Microsoft.Authorization/roleAssignments@2021-04-01-preview' = { - name: '${guid(rgRoleAssignmentName)}' - scope: resourceGroup() - properties: { - description: 'Give reader on the resource group' - principalId: autoShutdown.identity.principalId - // Fix the issue of the principal not being ready when deployment the assignment - principalType: 'ServicePrincipal' - roleDefinitionId: fullReaderId - } -} +// resource autoShutdownRgAuthorization 'Microsoft.Authorization/roleAssignments@2021-04-01-preview' = { +// name: '${guid(rgRoleAssignmentName)}' +// scope: resourceGroup() +// properties: { +// description: 'Give reader on the resource group' +// principalId: autoShutdown.identity.principalId +// // Fix the issue of the principal not being ready when deployment the assignment +// principalType: 'ServicePrincipal' +// roleDefinitionId: fullReaderId +// } +// }