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

Get-MgServiceAnnouncementHealthOverview requesting API version #2786

Open
12Knocksinna opened this issue Jun 11, 2024 · 0 comments
Open

Get-MgServiceAnnouncementHealthOverview requesting API version #2786

12Knocksinna opened this issue Jun 11, 2024 · 0 comments

Comments

@12Knocksinna
Copy link

12Knocksinna commented Jun 11, 2024

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

@12Knocksinna 12Knocksinna added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Jun 11, 2024
@timayabi2020 timayabi2020 added Status: Needs Investigation and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants