@@ -7365,18 +7365,13 @@ def create_new_cluster_with_monitoring_aad_auth(self, resource_group, resource_g
73657365
73667366 if data_collection_settings :
73677367 self .cmd (get_cmd , checks = [
7368- self .check ('properties.dataSources.extensions[0].name' , f'ContainerInsightsExtension' )
7369- ])
7370- self .cmd (get_cmd , checks = [
7371- self .check ('properties.dataSources.extensions[0].extensionSettings.dataCollectionSettings.interval' , f'1m' )
7372- ])
7373- self .cmd (get_cmd , checks = [
7374- self .check ('properties.dataSources.extensions[0].extensionSettings.dataCollectionSettings.namespaceFilteringMode' , f'Include' )
7375- ])
7376- self .cmd (get_cmd , checks = [
7368+ self .check ('properties.dataSources.extensions[0].name' , f'ContainerInsightsExtension' ),
7369+ self .check ('properties.dataSources.extensions[0].extensionSettings.dataCollectionSettings.interval' , f'1m' ),
7370+ self .check ('properties.dataSources.extensions[0].extensionSettings.dataCollectionSettings.namespaceFilteringMode' , f'Include' ),
73777371 self .check ('properties.dataSources.extensions[0].extensionSettings.dataCollectionSettings.namespaces[0]' , f'kube-system' ),
73787372 self .check ('properties.dataSources.extensions[0].extensionSettings.dataCollectionSettings.streams[0]' , f'Microsoft-ContainerLogV2' ),
7379- self .check ('properties.dataFlows[0].streams[0]' , f'Microsoft-ContainerLogV2' )
7373+ self .check ('properties.dataFlows[0].streams[0]' , f'Microsoft-ContainerLogV2' ),
7374+ self .check ('properties.dataSources.extensions[0].extensionSettings.dataCollectionSettings.enableContainerLogV2' , True )
73807375 ])
73817376 # check that the DCR-A was created
73827377 dcra_resource_id = f"{ cluster_resource_id } /providers/Microsoft.Insights/dataCollectionRuleAssociations/ContainerInsightsExtension"
0 commit comments