Datadog

Datadog Expertise

RapDev is a Datadog Premier Partner focused on accelerating our customers’ time to value.
600
Implementations
110
US-Based Engineers
68
Datadog Certifications

Security & Managed SOC

Quickly and seamlessly implement Cloud SIEM, ASM, SCA, and Cloud Security Posture Management to power a modern DevSecOps strategy

Incident Management

Transform data into high-confidence, actionable incidents using AI-driven detection, clear ownership models, and automated remediation

Marketplace Integrations

RapDev is proud to offer more Datadog Marketplace integrations than any other partner

ServiceNow

ServiceNow Expertise

RapDev is a ServiceNow Elite partner focused on helping you drive business outcomes with the ITx suite.
4.7
CSAT Score
136
Product Line Certs.
67k
AI Agents Discovered

Agentic AI & AI Governance

Deploy and scale production-ready agentic AI to automate workflows and accelerate ServiceNow outcomes

Enterprise Architecture

Connect your technology landscape to business strategy to optimize investments, reduce risk, and accelerate modernization

ServiceNow Store

Leverage RapDev’s certified apps and AI Agents to expedite operations on the Now Platform
Blog
Company

About RapDev

RapDev is powered by a team of experienced, U.S. based engineers focused on redefining service operations through AI, automation, and modern observability.

Join the RapDev team

Our no-frills approach to collaborating is what allows us to deliver the best. Our team is growing and we’re looking for the best in the game.

Press

Latest news and announcements from RapDev

Events & Webinars

From hands-on workshops to industry-leading conferences

Resources

Back to blog

Azure Discovery: An Automated Solution

With ServiceNow's Azure Cloud Discovery, one can better keep track of their Azure environment and subscriptions.

X

min read

January 5, 2023

Evan Guby

With ServiceNow's Azure Cloud Discovery, one can better keep track of their Azure environment and subscriptions. But this is primarily a manual effort, needing to create discovery schedules for each subscription. Some organizations have many Azure subscriptions, which can be challenging to keep up with. Instead of creating these manually, I have designed a solution to automatically discover new Azure subscriptions and create discovery schedules for them once found.

The first item to get set up is a scheduled job that emulates the Discover Subscriptions UI action found on Azure Service Principal records. This scheduled job would bring in new subscriptions daily if any were created within the Azure account. We can use a flag on the service principal record to avoid discovering new subscriptions on every Azure account. Here is a look at the Discover Subscriptions UI action script, which we can emulate in the scheduled job.

The next piece of the puzzle is to trigger the creation of cloud discovery schedules for each new subscription. One option is to trigger it with a business rule on the Cloud Service Account table, where subscriptions are saved. Within the business rule script, we must emulate what the Cloud Discovery wizard creates. With some research, I found that this wizard houses its helper functions in the CloudDiscoveryScheduleConfig script include. We can utilize this script include to properly generate cloud discovery schedules. We must use this OOB script include as we would see errors when executing the cloud discoveries if we didn't.

The screenshot above shows the steps the Cloud Discovery wizard takes you through. Selecting which data centers, whether we want to discover virtual machines, and timing the schedules are all things we need to consider when generating our cloud discovery schedule. Customizations like these can be catered for when writing our script.

Once all set up, our end result will be an organized, always up-to-date Azure CMDB. We will only need to monitor for new subscriptions and schedules as the automation removes most of the manual work. This automated solution will help organizations confidently know that their Azure data is current and fresh.