From ac07ffef3ef742be5fcf35f77658e022ef0ebe89 Mon Sep 17 00:00:00 2001 From: Maria Botova Date: Wed, 8 Mar 2023 17:51:30 +0000 Subject: [PATCH 1/3] Update log-analytics.bicep fixed xPathQueries --- .../childTemplates/log-analytics.bicep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/02 Deployment of Azure resources/childTemplates/log-analytics.bicep b/02 Deployment of Azure resources/childTemplates/log-analytics.bicep index fdda8bb..424a413 100644 --- a/02 Deployment of Azure resources/childTemplates/log-analytics.bicep +++ b/02 Deployment of Azure resources/childTemplates/log-analytics.bicep @@ -53,7 +53,7 @@ resource DCR_AllSystemInformation 'Microsoft.Insights/dataCollectionRules@2021-0 'Microsoft-Event' ] xPathQueries: [ - '*[System[(Level=4 or Level=0)]]' + 'System!*[System[(Level=1 or Level=2 or Level=3 or Level=4 or Level=0)]]' ] name: 'AllSystemInformation' } @@ -95,7 +95,7 @@ resource DCR_AllSystemCritical 'Microsoft.Insights/dataCollectionRules@2021-04-0 'Microsoft-Event' ] xPathQueries: [ - '*[System[(Level=1)]]' + 'System!*[System[(Level=1)]]' ] name: 'AllSystemCritical' } From d8918f315f69a376eb6e00dfc86355a14d7463d6 Mon Sep 17 00:00:00 2001 From: Maria Botova Date: Thu, 9 Mar 2023 11:54:29 +0000 Subject: [PATCH 2/3] Update deploy-AzureBicepResources.ps1 --- .../parentTemplates/deploy-AzureBicepResources.ps1 | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/02 Deployment of Azure resources/parentTemplates/deploy-AzureBicepResources.ps1 b/02 Deployment of Azure resources/parentTemplates/deploy-AzureBicepResources.ps1 index 8762f61..0cb7ed0 100644 --- a/02 Deployment of Azure resources/parentTemplates/deploy-AzureBicepResources.ps1 +++ b/02 Deployment of Azure resources/parentTemplates/deploy-AzureBicepResources.ps1 @@ -18,14 +18,3 @@ $paramObject = @{ # All test Azure resources including NSGs & NSG Security Rukles as both top level resources New-AzManagementGroupDeployment -Location $variables.location -TemplateFile '.\02 Deployment of Azure resources\parentTemplates\main.bicep' -ManagementGroupId $variables.ManagementGroupId -Name $TimeNow -TemplateParameterObject $paramObject -Verbose - - - - - - - - -# DO NOT DEPLOY -# NSGs with the Security Rules as sub-resources -New-AzManagementGroupDeployment -Location $location -TemplateFile './01 Deployment of Azure resources\parentTemplates\main(nsg).bicep' -ManagementGroupId $ManagementGroupId -Name $TimeNow -Verbose \ No newline at end of file From 6a96523b8ac13ef5756b837256461065bdd37f35 Mon Sep 17 00:00:00 2001 From: Maria Botova Date: Sun, 12 Mar 2023 13:23:04 +0000 Subject: [PATCH 3/3] Update main.bicep --- .../parent_PolicyTemplates/main.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/03.1 Deployment of Azure Resource Policies (BICEP)/parent_PolicyTemplates/main.bicep b/03.1 Deployment of Azure Resource Policies (BICEP)/parent_PolicyTemplates/main.bicep index 05e89ae..bb70787 100644 --- a/03.1 Deployment of Azure Resource Policies (BICEP)/parent_PolicyTemplates/main.bicep +++ b/03.1 Deployment of Azure Resource Policies (BICEP)/parent_PolicyTemplates/main.bicep @@ -2,7 +2,7 @@ targetScope = 'managementGroup' param PaaS_ResourceGroupName string = 'Company_PaaS' param IaaS_ResourceGroupName string = 'Company_IaaS' -param DCR_Name string = 'AllSystemInformation' +param DCR_Name string = 'DCR-AllSystemInformation' param listOfAllowedLocations array = [ 'australiaeast'