Skip to content

⭐ Add Azure Functions, Service Bus, Event Hubs, DNS, and Front Door/CDN resources#7117

Merged
tas50 merged 5 commits intomainfrom
feature/azure-functions-servicebus-eventhub-dns-frontdoor
Apr 6, 2026
Merged

⭐ Add Azure Functions, Service Bus, Event Hubs, DNS, and Front Door/CDN resources#7117
tas50 merged 5 commits intomainfrom
feature/azure-functions-servicebus-eventhub-dns-frontdoor

Conversation

@tas50
Copy link
Copy Markdown
Member

@tas50 tas50 commented Apr 5, 2026

Summary

  • Add 5 new Azure services with 23 resource types covering the most popular missing Azure services
  • Azure Functions: functionApp, functionApp.function (reuses existing armappservice SDK)
  • Azure Service Bus: namespace, queue, topic, topic.subscription (armservicebus v1.2.0)
  • Azure Event Hubs: namespace, eventHub, consumerGroup (armeventhub v1.3.0)
  • Azure DNS: zone, recordSet, privateZone, virtualNetworkLink (armdns v1.2.0 + armprivatedns v1.3.0)
  • Azure Front Door/CDN: profile, endpoint, customDomain, originGroup, origin (armcdn/v2 v2.2.0)

Test plan

  • Build provider: make providers/build/azure && make providers/install/azure
  • Verify Functions: mql shell azure -c "azure.subscription.functions.functionApps"
  • Verify Service Bus: mql shell azure -c "azure.subscription.serviceBus.namespaces"
  • Verify Event Hubs: mql shell azure -c "azure.subscription.eventHub.namespaces"
  • Verify DNS: mql shell azure -c "azure.subscription.dns.zones" and azure.subscription.dns.privateZones
  • Verify Front Door: mql shell azure -c "azure.subscription.frontDoor.profiles"
  • Verify sub-resources load correctly (e.g. queues, topics, record sets, endpoints)

🤖 Generated with Claude Code

…DN resources

Add 5 new Azure services with 23 resource types covering the most popular
missing Azure services for security and compliance auditing.

New services:
- Functions: functionApp, functionApp.function
- Service Bus: namespace, queue, topic, topic.subscription
- Event Hubs: namespace, eventHub, consumerGroup
- DNS: zone, recordSet, privateZone, virtualNetworkLink
- Front Door/CDN: profile, endpoint, customDomain, originGroup, origin

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions

This comment has been minimized.

Copy link
Copy Markdown

@mondoo-code-review mondoo-code-review bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Service Bus namespaces will always report empty TLS version and network access settings, and Functions may panic on nil Properties access.

…censes

- Fix nil dereference in functions.go when fn.Properties is nil
- Remove minimumTlsVersion/publicNetworkAccess from Service Bus namespace
  (not available in armservicebus v1.2.0 SDK, v2 is beta-only)
- Fix copyright headers to match existing convention (2024, 2026)
- Add frontdoor/functionapp to spelling expect.txt

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mondoo-code-review mondoo-code-review bot dismissed their stale review April 5, 2026 21:08

Superseded by new review

Copy link
Copy Markdown

@mondoo-code-review mondoo-code-review bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds new Azure resource types (Functions, Service Bus, Event Hubs, DNS, Front Door/CDN) for querying via MQL.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 5, 2026

Test Results

6 119 tests  ±0   6 115 ✅ ±0   2m 16s ⏱️ +16s
  439 suites ±0       4 💤 ±0 
   35 files   ±0       0 ❌ ±0 

Results for commit 3029d93. ± Comparison against base commit e3df3ff.

♻️ This comment has been updated with latest results.

- functions.go: serialize site.Properties instead of entire Site object
- frontdoor.go: propagate JsonToDict errors for health probe/load balancing settings
- dns.go: propagate JsonToDict errors for record set properties

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@mondoo-code-review mondoo-code-review bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JsonToDict error handling was fixed in most places but one instance in functions.go still silently discards errors.

Signed-off-by: Tim Smith <tsmith84@gmail.com>
Copy link
Copy Markdown

@mondoo-code-review mondoo-code-review bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Permissions file updated for new Azure resources; one minor pre-existing issue persists.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@mondoo-code-review mondoo-code-review bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error handling for JsonToDict is now properly propagated instead of being silently discarded.

@tas50 tas50 merged commit 21f6518 into main Apr 6, 2026
20 checks passed
@tas50 tas50 deleted the feature/azure-functions-servicebus-eventhub-dns-frontdoor branch April 6, 2026 00:44
@github-actions github-actions bot locked and limited conversation to collaborators Apr 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant