[BUG] Azure.Resource.UseTags applies to Microsoft.SecurityInsights/dataConnectors, which cannot be tagged
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- azure, powershell
- 領域
- testing-qa
調査の方向性
まずセレクター Azure.Resource.SupportsTags とルール Azure.Resource.UseTags を読み、セレクターの除外がどのようにテストされているかを確認します。Microsoft.SecurityInsights/dataConnectors のテストを追加し、Microsoft.SecurityInsights/* のほかの子リソース型も除外すべきか判断します。コネクターが Azure.Resource.UseTags に違反しなくなり、関連するテストが通れば完了です。
索引モデルが issue の本文から書いたものです。
説明
Existing rule
Azure.Resource.UseTags (AZR-000166), via selector Azure.Resource.SupportsTags
Description of the issue
Sentinel data connectors (Microsoft.SecurityInsights/dataConnectors) are
extension resources on a Log Analytics workspace and have no tags property in
the resource schema, so there is no way to make the rule pass. The
Azure.Resource.SupportsTags selector does not exclude Microsoft.SecurityInsights/
types, so every data connector (for example one deployed with the AVM module
avm/res/security-insights/data-connector) fails.
To Reproduce
resource workspace 'Microsoft.OperationalInsights/workspaces@2025-07-01' existing = {
name: 'log-example'
}
resource connector 'Microsoft.SecurityInsights/dataConnectors@2025-09-01' = {
scope: workspace
name: '00000000-0000-0000-0000-000000000000'
kind: 'AzureSecurityCenter'
properties: {
subscriptionId: '00000000-0000-0000-0000-000000000000'
dataTypes: { alerts: { state: 'Enabled' } }
}
}
Run Invoke-PSRule with Azure.GA_2025_12: Azure.Resource.UseTags fails on the connector.
Expected behaviour
Microsoft.SecurityInsights/dataConnectors (and likely the other
Microsoft.SecurityInsights/* child types, which also have no tags) is excluded
from Azure.Resource.SupportsTags.
Reference: https://learn.microsoft.com/azure/templates/microsoft.securityinsights/dataconnectors
Module version: PSRule.Rules.Azure 1.47.0
- 主要言語
- PowerShell
- スター
- 449
- フォーク
- 109
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/PSRule.Rules.Azure のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Azure/PSRule.Rules.Azure#3958 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] Azure.AppService.PlanInstanceCount incorrectly applies to Flex Consumption (FC1) plans対応中かも @bwateratmsft が 41 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Azure/PSRule.Rules.Azure#3929 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Export-AzRuleData fails with HTTP 400 for DefenderForStorageSettings due to deprecated API version対応中かも @saryn17 が 47 日前に担当しました。 オープンbug feature: in-flight-export
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
Azure/PSRule.Rules.Azure#3865 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[FEATURE] Behaviour documentation for PR #3908対応中かも @ElinoraWhite が 23 日前に担当しました。 オープンdocumentation
Azure/PSRule.Rules.Azure#3944 · リアクション 1 件 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] Expansion fails with "Hash must be finalized before the hash value is retrieved" when using an object output from a cross-scope module対応中かも @oWretch が 58 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 62/100
Azure/PSRule.Rules.Azure#3909 ·
メンテナーはふだん 1 日以内に返信
Azure/PSRule.Rules.Azure の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
jejjohnson/gaussx#751 ·
メンテナーはふだん 1 日以内に返信
-
enhancement owner: den-haag
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
メンテナーはふだん 6 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
[BUG] AdvancedCronJob validating webhook reports incorrect field paths for concurrencyPolicy and pod templates対応中かも @bhuvan-somisetty が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
openkruise/kruise#2650 ·
メンテナーはふだん 1 日以内に返信
-
Flaky Balance tests: a delayed state reset can undo the visibility toggle対応中かも @Gurkaran18 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
joinmarket-webui/jam#1617 ·
メンテナーはふだん 3 日以内に返信