Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-MgBookingBusiness : "~At least one error occured" #2224

Closed
iuaj7 opened this issue Aug 7, 2023 · 1 comment
Closed

New-MgBookingBusiness : "~At least one error occured" #2224

iuaj7 opened this issue Aug 7, 2023 · 1 comment
Labels

Comments

@iuaj7
Copy link

iuaj7 commented Aug 7, 2023

Description:
Running the New-MgBookingBusiness command does not work as expected

The output is: (~"At least one error occured")
New-MgBookingBusiness : Mindestens ein Fehler ist aufgetreten.
In Zeile:17 Zeichen:1

  • New-MgBookingBusiness -BodyParameter $params
  •   + CategoryInfo          : NotSpecified: (:) [New-MgBookingBusiness_Create], AggregateException
      + FullyQualifiedErrorId : Microsoft.Graph.PowerShell.Cmdlets.NewMgBookingBusiness_Create
    
    

To Reproduce / Steps to reproduce the behavior:

Import-Module Microsoft.Graph.Bookings
Connect-MgGraph -ContextScope Process -Scopes "Bookings.Manage.All", "Bookings.Read.All", "Bookings.ReadWrite.All", "BookingsAppointment.ReadWrite.All"
Welcome To Microsoft Graph!
PS C:\PS>
PS C:\PS> $params = @{
displayName = "Fourth Coffee"
address = @{
postOfficeBox = "P.O. Box 123"
street = "4567 Main Street"
city = "Buffalo"
state = "NY"
countryOrRegion = "USA"
postalCode = "98052"
}
phone = "206-555-0100"
email = "manager@fourthcoffee.com"
webSiteUrl = "https://www.fourthcoffee.com"
defaultCurrencyIso = "USD"
}
New-MgBookingBusiness -BodyParameter $params

Expected behavior:
Created new Bookings page

Debug Output
None, also nothing from Fiddler

Module Version:
Get-Module Microsoft.Graph*
ModuleType Version Name ExportedCommands


Script 2.1.0 Microsoft.Graph.Authentication {Add-MgEnvironment, Connect-MgGraph, Disconnect-MgGraph, Get-MgContext...}
Script 2.1.0 Microsoft.Graph.Bookings {Get-MgBookingBusiness, Get-MgBookingBusinessAppointment, Get-MgBookingBusinessAppointmentCount, Get-MgBookingBusinessCalendarView...}

Environment Data:
$PSVersionTable

Name Value


PSVersion 5.1.19041.3031
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.3031
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Additional context
Get-MgBookingBusiness works nicely
Graph Explorer works also

Workaround:
Invoke-MgGraphRequest -Method POST -Uri $url -Body $body

@ghost ghost added the ToTriage label Aug 7, 2023
@peombwa
Copy link
Member

peombwa commented Aug 9, 2023

Thanks for following up on this.

This is a duplicate of #2191 (comment). The fix is scheduled to go out somewhere this week as part of v2.3.0.

As a workaround, please use the standalone PowerShell 5.1 (not VS Code extension) or PowerShell 7 to run the command.

@peombwa peombwa closed this as completed Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants