Microsoft Defender XDR を使用する Azure サブスクリプションがあります。 Microsoft Defender ポータルから監査検索を実行し、その結果を 10,000 行を含む Filel.csv という名前のファイルとしてエクスポートします。 Microsoft Excel を使用してデータの取得と変換操作を実行し、Filel.csv から AuditData 列を解析します。この操作では、特定の JSON プロパティの列を生成できません。 Excel が監査検索結果の特定の JSON プロパティの列を生成するようにする必要があります。 解決策: Defender から、監査検索の検索条件を変更して返されるレコードの数を減らし、結果をエクスポートします。Excel から、新しいエクスポートを使用してデータの取得と変換操作を実行します。 これは要件を満たしていますか?
正解:B
This solution does not reliably meet the requirement. The underlying problem is not the absolute count of rows in the CSV but how Power Query (Get & Transform) infers and expands JSON properties: Power Query samples the input rows to discover the JSON schema/fields. If a particular JSON property does not appear in the sample used for schema detection, Power Query will not create a column for it when you expand the JSON. Simply reducing the exported record count from Defender (so you end up with fewer rows) only helps if the exported dataset by chance contains the missing JSON properties within the rows Power Query samples. It is not a guaranteed or controlled fix and therefore does not meet the requirement. The correct fixes are to (a) adjust Power Query's sampling/preview settings so it inspects more rows (so the property is included in schema detection), or (b) explicitly parse the JSON and expand fields using Power Query M functions (for example parse each AuditData with JSON.Document and then expand Record fields), which ensures the desired properties become columns regardless of initial sampling. Reducing Defender export size is not the recommended or reliable approach.