← Documentation
Azure

Azure Onboarding Guide

Step-by-step instructions for connecting your Azure subscriptions to Park Your Cloud using a PYC service principal and Management Groups. Choose your method below.

See what gets parked on Azure →
1

Navigate to Accounts and Start Azure Onboarding

Screenshot: Azure Onboarding - Choose method
Expand

Where you are: The Azure Onboarding screen.
How to get here: Click Accounts in the top navigation bar, then select Azure from the dropdown.

OptionWhen to use it
Discover automaticallyYou have an Azure tenant with a Management Group set up. PYC will scan all subscriptions linked to your tenant automatically. Best for most users.
Add manuallyYou want to add one subscription at a time, or you do not have tenant-wide permissions.
Select Discover automatically if you manage multiple Azure subscriptions under an Azure tenant (recommended).
Select Add manually if you only need to add specific subscriptions or have restricted permissions.
Once selected, click the Continue button at the bottom right.
2

Enter Your Azure Tenant ID (Step 1 of 4)

Screenshot: Enter Azure Tenant ID - Step 1 of 4
Expand

A 4-step wizard on the left sidebar. You are on Step 1: Tenant ID.

Note

If you have already onboarded some Azure subscriptions before, this flow will not affect them. It only adds new subscriptions not yet onboarded to PYC.

FieldWhat to enterExample
Azure Tenant IDYour Azure Active Directory Tenant ID. This is a unique identifier (UUID format) for your Azure organization.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Note

To find your Tenant ID: Go to Azure Portal > Azure Active Directory > Overview. Your Tenant ID is displayed on that page.

1Enter your Azure Tenant ID in the input field.
2Click Save, then click Continue.
3

Enter Your Management Group ID (Step 2 of 4)

Screenshot: Enter Management Group ID - Step 2 of 4
Expand

Step 2 of the wizard asking for your Azure Management Group ID.

FieldWhat to enterExample
Management Group IDThe ID of the Azure Management Group where you performed the role assignment for PYC. This is typically your root Management Group ID.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Note

To find your Management Group ID: Go to Azure Portal > Management Groups. Click on your root management group and copy the ID shown.

1Enter your Azure Management Group ID in the input field.
2Click Save, then click Continue.
4

Run the Discovery Script (Step 3 of 4)

Screenshot: Run Discovery Script - Step 3 of 4
Expand

A PowerShell script file (azure-onboarding-script.ps1) is displayed on screen. This script assigns the necessary role to the PYC service principal across all subscriptions in your tenant.

1Click Download or Copy to get the script.
2Open the Azure Portal (https://portal.azure.com) as an Organization-level admin.
3Click the Cloud Shell icon (>_) in the top navigation bar of the Azure Portal.
4When prompted, select Bash (not PowerShell).
5Once the shell is ready, paste and run the script commands.
6Wait for the script to complete. The status bar at the bottom of the PYC screen will show "Verifying service principal... this may take up to 60 seconds."
7Once verification is done, click Verify, then Continue.
Why this is needed

This script grants the PYC service principal (pyc-cloud-manager-app) the Reader role across your Management Group, allowing PYC to discover all linked subscriptions automatically.

Important

You must be an Organization-level admin (Global Administrator or equivalent) in your Azure tenant to run this script successfully.

5

Verify Subscriptions (Step 4 of 4)

Screenshot: Verify Subscriptions - Step 4 of 4
Expand

All 4 steps on the left sidebar are marked Complete. This is the final step of the Azure auto-discovery wizard.

1Click the Verify button at the bottom right.
2PYC will connect to your Azure tenant and load all discovered subscriptions.
3Wait for five minutes until the process is complete, then click Finish.
Note

PYC will display all Azure subscriptions it discovered under your tenant. They will appear in your Accounts list and are ready for scheduling and resource management.

6

Review Verification Results

Screenshot: Azure Subscriptions - verification results
Expand

After you click Verify, PYC runs subscription discovery in the background. This takes approximately 5 minutes. Once complete, the Azure Subscriptions table appears, listing every subscription PYC found using the service principal and PowerShell script you configured.

ColumnDescription
Subscription IDThe unique Azure subscription ID discovered by PYC.
Subscription NameThe display name of the Azure subscription.
Discovered OnDate and time when PYC first detected this subscription.
Modified OnDate and time of the most recent update to this subscription record.
Ready to OnboardA green checkmark means the service principal has the correct permissions. A red X means there is a permission or configuration issue.
StatusShows Active when the subscription is reachable.
Checked OnDate and time when PYC last verified the service principal for this subscription.
Execution DetailsShows "Role verified successfully" on success, or the specific service principal error message if permissions are missing.
Note

If a subscription shows a red X under Ready to Onboard, the service principal does not have the required permissions on that subscription. Re-run the Azure PowerShell script for that subscription, then click Check Status for All Subscriptions to re-verify.

Refresh reloads the table to pick up any newly discovered subscriptions.
Check Status for All Subscriptions re-runs service principal verification for every subscription in the list.
Onboard Selected onboards only the subscriptions you have selected.
1Wait for the table to load (about 5 minutes after clicking Verify).
2Review the Ready to Onboard column - a green checkmark means the subscription is verified and ready.
3If a subscription shows a red X, check the Execution Details column for the error and re-run the PowerShell setup script for that subscription.
4Click Check Status for All Subscriptions to refresh verification after fixing any issues.
5Select the checkboxes next to the subscriptions you want to onboard.
6Click Onboard Selected to complete onboarding for those subscriptions.