Azure: Support scope selection in Resource Graph queries (#105835)

* Add scope type

* Add scope selector field

* Update docs

* Use the right field component

* Trigger build

* Fix import and increase wait

* i8n
This commit is contained in:
Andreas Christou
2025-06-27 18:08:55 +01:00
committed by GitHub
parent 67a952c34e
commit c48a1aba40
11 changed files with 159 additions and 40 deletions
@@ -407,6 +407,8 @@ type AzureResourceGraphQuery struct {
Query *string `json:"query,omitempty"`
// Specifies the format results should be returned as. Defaults to table.
ResultFormat *string `json:"resultFormat,omitempty"`
// Specifies the scope of the query. Defaults to subscription.
Scope *ARGScope `json:"scope,omitempty"`
}
// NewAzureResourceGraphQuery creates a new AzureResourceGraphQuery object.
@@ -414,6 +416,13 @@ func NewAzureResourceGraphQuery() *AzureResourceGraphQuery {
return &AzureResourceGraphQuery{}
}
type ARGScope string
const (
ARGScopeSubscription ARGScope = "subscription"
ARGScopeDirectory ARGScope = "directory"
)
// Application Insights Traces sub-query properties
type AzureTracesQuery struct {
// Specifies the format results should be returned as.