Get-MgBookingBusinessService

What is Get-MgBookingBusinessService?

Get-MgBookingBusinessService is a Microsoft Graph PowerShell cmdlet used to retrieve service details from a specific Microsoft Bookings business. Services in Microsoft Bookings represent the offerings that customers can schedule—such as consultations, classes, appointments, or support sessions.

This cmdlet helps administrators access, audit, and manage all services configured within a booking business.

🚀 Community Edition Released!

Try the M365Corner Microsoft 365 Reporting Tool — your DIY pack with 20+ out-of-the-box M365 reports for Users, Groups, and Teams.

Why Use Get-MgBookingBusinessService?

Administrators and service managers use this cmdlet to:

  • Retrieve all services available in a booking business
  • Audit service configurations such as names, durations, and availability
  • Build reports or export service details
  • Validate services before creating appointments programmatically
  • Automate service management across multiple departments or branches

It is highly beneficial for large organizations with many booking pages or service offerings.


Prerequisites

Before using the cmdlet, install and connect to Microsoft Graph:

Install-Module Microsoft.Graph -Scope CurrentUser
Connect-MgGraph -Scopes "Bookings.Read.All"

You may also use Bookings.ReadWrite.All if you plan to modify service data in follow-up operations.


How to Use Get-MgBookingBusinessService?

The cmdlet requires the BookingBusinessId and optionally the BookingServiceId to retrieve a single service.

Get-MgBookingBusinessService -BookingBusinessId <String> [-BookingServiceId <String>][-Property <string[]>]

Get-MgBookingBusinessService Examples

Example 1: Retrieve All Services for a Booking Business

Get-MgBookingBusinessService -BookingBusinessId "12345-abcde-67890-fghij"

This command retrieves all services associated with the specified booking business. It’s an easy way to list every service offered in that business.

Example 2: Retrieve Specific Service Details

Get-MgBookingBusinessService -BookingBusinessId "12345-abcde-67890-fghij" -BookingServiceId "service123"

This retrieves detailed information about a specific service, identified by its service ID—useful when troubleshooting or reviewing individual offerings.

Example 3: Retrieve Specific Properties of a Service

Get-MgBookingBusinessService -BookingBusinessId "12345-abcde-67890-fghij" -BookingServiceId "service123" -Property "displayName", "defaultDuration"

This command returns only the selected properties, such as displayName and defaultDuration, helping reduce output when only key information is needed.


Summary

Key Point Details
Cmdlet Name Get-MgBookingBusinessService
Purpose Retrieves details of Microsoft Bookings services
Required Scope Bookings.Read.All or Bookings.ReadWrite.All
Primary Parameters BookingBusinessId, BookingServiceId
Automation Benefit Enables service audits, reporting, and programmatic validation
Use Case Managing or reviewing services across multiple booking pages

Did You Know? Managing Microsoft 365 applications is even easier with automation. Try our Graph PowerShell scripts to automate tasks like generating reports, cleaning up inactive Teams, or assigning licenses efficiently.

Ready to get the most out of Microsoft 365 tools? Explore our free Microsoft 365 administration tools to simplify your administrative tasks and boost productivity.

© Your Site Name. All Rights Reserved. Design by HTML Codex