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-mgbetasecurityAttackSimulation - 404 #3065

Open
William-Francillette opened this issue Jan 3, 2025 · 0 comments
Open

get-mgbetasecurityAttackSimulation - 404 #3065

William-Francillette opened this issue Jan 3, 2025 · 0 comments
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience

Comments

@William-Francillette
Copy link

Describe the bug

get-mgbetasecurityAttackSimulation returns a 404 due to wrong endpoint queried

from the debug trace

HTTP Method:
GET

Absolute Uri:
https://graph.microsoft.com/beta/security/attackSimulation

Expected behavior

The following endpoint should be queried instead

Absolute Uri:
https://graph.microsoft.com/beta/security/attackSimulation/simulations

How to reproduce

get-mgbetasecurityAttackSimulation

SDK Version

2.24.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```

DEBUG: [CmdletBeginProcessing]: - Get-MgBetaSecurityAttackSimulation begin processing with parameterSet 'Get'.
DEBUG: [Authentication]: - AuthType: 'AppOnly', TokenCredentialType: 'ClientCertificate', ContextScope: 'Process', AppName: 'M365DSC'.
DEBUG: [Authentication]: - Scopes: [DeviceManagementManagedDevices.Read.All, Policy.ReadWrite.ConditionalAccess, User.ReadWrite.All, RoleManagement.Read.Directory, Policy.ReadWrite.ApplicationConfiguration, Application.ReadWrite.All, Group.Read.All, Directory.ReadWrite.All, DeviceManagementServiceConfig.Read.All, Group.ReadWrite.All, Directory.Read.All, User.Read.All, Agreement.Read.All, DeviceManagementServiceConfig.ReadWrite.All, GroupMember.Read.All, Organization.ReadWrite.All, DeviceManagementConfiguration.Read.All, DeviceManagementManagedDevices.ReadWrite.All, User.ManageIdentities.All, Organization.Read.All, RoleManagement.ReadWrite.Directory, GroupMember.ReadWrite.All, Policy.Read.All, DeviceManagementConfiguration.ReadWrite.All, Application.Read.All, DeviceManagementApps.ReadWrite.All, DeviceManagementApps.Read.All, Agreement.ReadWrite.All, Policy.Read.ConditionalAccess, AccessReview.ReadWrite.Membership, Policy.ReadWrite.AuthenticationMethod, UserAuthenticationMethod.Read.All, OnPremDirectorySynchronization.Read.All, UserAuthenticationMethod.ReadWrite.All, AdministrativeUnit.Read.All, AccessReview.ReadWrite.All, DirectoryRecommendations.Read.All, EntitlementManagement.Read.All, AttackSimulation.ReadWrite.All, DeviceManagementRBAC.Read.All, EntitlementManagement.ReadWrite.All, APIConnectors.Read.All, AppRoleAssignment.ReadWrite.All, AccessReview.Read.All, OnPremDirectorySynchronization.ReadWrite.All, AdministrativeUnit.ReadWrite.All, AuditLog.Read.All, Policy.ReadWrite.CrossTenantAccess, Policy.ReadWrite.Authorization, Reports.Read.All, DeviceManagementRBAC.ReadWrite.All, Policy.ReadWrite.AccessReview].
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://graph.microsoft.com/beta/security/attackSimulation

Headers:
FeatureFlag : 00000043
Cache-Control : no-store, no-cache
User-Agent : Mozilla/5.0,(Windows NT 10.0; Microsoft Windows 10.0.22631; en-GB),PowerShell/7.4.6
Accept-Encoding : gzip
SdkVersion : graph-powershell-beta/2.24.0
client-request-id : 3389307d-f2c6-4f8d-9eb6-31643c59e6a2

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
NotFound

Headers:
Vary : Accept-Encoding
Strict-Transport-Security : max-age=31536000
request-id : 3d4d59aa-9f0b-4b21-96c5-32fb64b7e9c6
client-request-id : 3389307d-f2c6-4f8d-9eb6-31643c59e6a2
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"UK South","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"LN2PEPF000114CC"}}
Date : Fri, 03 Jan 2025 09:48:53 GMT

Body:
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"date": "2025-01-03T09:48:53",
"request-id": "3d4d59aa-9f0b-4b21-96c5-32fb64b7e9c6",
"client-request-id": "3389307d-f2c6-4f8d-9eb6-31643c59e6a2"
}
}
}

Get-MgBetaSecurityAttackSimulation_Get:

Status: 404 (NotFound)
ErrorCode: UnknownError
Date: 2025-01-03T09:48:53

Headers:
Vary : Accept-Encoding
Strict-Transport-Security : max-age=31536000
request-id : 3d4d59aa-9f0b-4b21-96c5-32fb64b7e9c6
client-request-id : 3389307d-f2c6-4f8d-9eb6-31643c59e6a2
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"UK South","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"LN2PEPF000114CC"}}
Date : Fri, 03 Jan 2025 09:48:53 GMT

DEBUG: [CmdletEndProcessing]: - Get-MgBetaSecurityAttackSimulation end processing.

</details>


### Configuration

_No response_

### Other information

_No response_
@William-Francillette William-Francillette added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

1 participant