You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to run Get-MgServiceAnnouncementHealthOverview to fetch current service health overviews and I get the error:
[array]$ImportantServiceStatus = Get-MgServiceAnnouncementHealthOverview
Get-MgServiceAnnouncementHealthOverview_List: The api-version query parameter (?api-version=) is required for all requests.
Expected behavior
Previously, the cmdlet worked perfectly and returned a list of service health overviews. The Graph API works as expected:
status serviceDegradation
id Exchange
service Exchange Online
status serviceOperational
id OrgLiveID
service Microsoft Entra
status serviceDegradation
id OSDPPlatform
service Microsoft 365 suite
How to reproduce
Run Get-MgServiceAnnouncementHealthOverview - the error is apparent immediately.
Interestingly, the debug output shows an unexpected URL...
Body:
{
"error": {
"code": "MissingApiVersionParameter",
"message": "The api-version query parameter (?api-version=) is required for all requests."
}
}
Configuration
Windows 11
$PSVersiontable
Name Value
PSVersion 7.4.2
PSEdition Core
GitCommitId 7.4.2
OS Microsoft Windows 10.0.22631
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Other information
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Trying to run Get-MgServiceAnnouncementHealthOverview to fetch current service health overviews and I get the error:
[array]$ImportantServiceStatus = Get-MgServiceAnnouncementHealthOverview
Get-MgServiceAnnouncementHealthOverview_List: The api-version query parameter (?api-version=) is required for all requests.
Expected behavior
Previously, the cmdlet worked perfectly and returned a list of service health overviews. The Graph API works as expected:
$uri = "https://graph.microsoft.com/v1.0/admin/serviceAnnouncement/healthOverviews"
[array]$data = invoke-MgGraphRequest -Method get -Uri $Uri
data.value
Name Value
status serviceDegradation
id Exchange
service Exchange Online
status serviceOperational
id OrgLiveID
service Microsoft Entra
status serviceDegradation
id OSDPPlatform
service Microsoft 365 suite
How to reproduce
Run Get-MgServiceAnnouncementHealthOverview - the error is apparent immediately.
Interestingly, the debug output shows an unexpected URL...
HTTP Method:
GET
Absolute Uri:
https://prod-152.westeurope.logic.azure.com/v1.0/admin/serviceAnnouncement/healthOverviews
Headers:
FeatureFlag : 00000043
Cache-Control : no-store, no-cache
User-Agent : Mozilla/5.0,(Windows NT 10.0; Microsoft Windows 10.0.22631; en-IE),PowerShell/7.4.2
Accept-Encoding : gzip
SdkVersion : graph-powershell/2.19.0
client-request-id : ddfef91b-153f-43d9-8888-a9c2ad50bc18
Body:
SDK Version
SDK V2.19
Latest version known to work for scenario above?
V2.13
Known Workarounds
Use the Graph API as above.
Debug output
Get-MgServiceAnnouncementHealthOverview -debug
DEBUG: [CmdletBeginProcessing]: - Get-MgServiceAnnouncementHealthOverview begin processing with parameterSet 'List'.
DEBUG: [Authentication]: - AuthType: 'Delegated', TokenCredentialType: 'InteractiveBrowser', ContextScope: 'CurrentUser', AppName: 'Microsoft Graph Command Line Tools'.
DEBUG: [Authentication]: - Scopes: [AccessReview.Read.All, Agreement.Read.All, Analytics.Read, APIConnectors.Read.All, Application.Read.All, Application.ReadWrite.All, AppRoleAssignment.ReadWrite.All, AuditLog.Read.All, AuditLogsQuery.Read.All, Calendars.Read, Channel.ReadBasic.All, ChannelMessage.Read.All, ChannelMessage.ReadWrite, ChannelMessage.Send, ChannelSettings.Read.All, ChannelSettings.ReadWrite.All, Chat.Create, Chat.ManageDeletion.All, Chat.ReadWrite, Community.ReadWrite.All, Contacts.ReadWrite, CrossTenantUserProfileSharing.Read, CrossTenantUserProfileSharing.Read.All, DelegatedPermissionGrant.ReadWrite.All, Directory.AccessAsUser.All, Directory.Read.All, Directory.ReadWrite.All, DirectoryRecommendations.Read.All, Domain.Read.All, eDiscovery.Read.All, email, EntitlementManagement.Read.All, Group.Read.All, Group.ReadWrite.All, GroupMember.Read.All, GroupMember.ReadWrite.All, IdentityProvider.Read.All, IdentityProvider.ReadWrite.All, IdentityRiskyUser.Read.All, IdentityRiskyUser.ReadWrite.All, IdentityUserFlow.Read.All, InformationProtectionPolicy.Read, Mail.Read, Mail.ReadWrite, Mail.Send, Mail.Send.Shared, OnlineMeetingArtifact.Read.All, OnlineMeetings.Read, openid, Organization.Read.All, PeopleSettings.Read.All, PeopleSettings.ReadWrite.All, Place.Read.All, Policy.Read.All, Policy.Read.PermissionGrant, Policy.ReadWrite.ApplicationConfiguration, Policy.ReadWrite.AuthenticationMethod, Policy.ReadWrite.ConditionalAccess, PrivilegedAccess.Read.AzureAD, PrivilegedAccess.Read.AzureResources, profile, RecordsManagement.Read.All, Reports.Read.All, ReportSettings.ReadWrite.All, RoleAssignmentSchedule.Read.Directory, RoleAssignmentSchedule.ReadWrite.Directory, RoleEligibilitySchedule.Read.Directory, RoleManagement.Read.All, RoleManagement.Read.Directory, SecurityActions.ReadWrite.All, SecurityEvents.Read.All, SecurityEvents.ReadWrite.All, ServiceHealth.Read.All, ServiceMessage.Read.All, SharePointTenantSettings.ReadWrite.All, Sites.FullControl.All, Sites.Manage.All, Sites.Read.All, Sites.ReadWrite.All, Tasks.Read, Tasks.ReadWrite, Team.ReadBasic.All, TeamMember.Read.All, TeamSettings.Read.All, TeamsTab.Read.All, TeamworkTag.ReadWrite, User.Read, User.Read.All, User.ReadBasic.All, User.ReadWrite, User.ReadWrite.All, UserAuthenticationMethod.Read.All, UserAuthenticationMethod.ReadWrite.All, User-ConvertToInternal.ReadWrite.All, VirtualEvent.Read, WindowsUpdates.Read.All, MailboxSettings.ReadWrite].
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://prod-152.westeurope.logic.azure.com/v1.0/admin/serviceAnnouncement/healthOverviews
Headers:
FeatureFlag : 00000043
Cache-Control : no-store, no-cache
User-Agent : Mozilla/5.0,(Windows NT 10.0; Microsoft Windows 10.0.22631; en-IE),PowerShell/7.4.2
Accept-Encoding : gzip
SdkVersion : graph-powershell/2.19.0
client-request-id : ddfef91b-153f-43d9-8888-a9c2ad50bc18
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
BadRequest
Headers:
Cache-Control : no-cache
Pragma : no-cache
x-ms-request-id : westeurope:37d59b10-29dd-4fa6-9ae6-e5b3bac7c390
Strict-Transport-Security : max-age=31536000; includeSubDomains
Date : Tue, 11 Jun 2024 18:04:34 GMT
Body:
{
"error": {
"code": "MissingApiVersionParameter",
"message": "The api-version query parameter (?api-version=) is required for all requests."
}
}
Configuration
Windows 11
$PSVersiontable
Name Value
PSVersion 7.4.2
PSEdition Core
GitCommitId 7.4.2
OS Microsoft Windows 10.0.22631
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Other information
No response
The text was updated successfully, but these errors were encountered: