We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 returns a 404 due to wrong endpoint queried
from the debug trace
HTTP Method: GET Absolute Uri: https://graph.microsoft.com/beta/security/attackSimulation
The following endpoint should be queried instead
Absolute Uri: https://graph.microsoft.com/beta/security/attackSimulation/simulations
get-mgbetasecurityAttackSimulation
2.24.0
No response
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
DEBUG: [CmdletEndProcessing]: - Get-MgBetaSecurityAttackSimulation end processing.
</details> ### Configuration _No response_ ### Other information _No response_
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
get-mgbetasecurityAttackSimulation returns a 404 due to wrong endpoint queried
from the debug trace
Expected behavior
The following endpoint should be queried instead
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.
The text was updated successfully, but these errors were encountered: