Skip to content

Invoke-WebRequest error Parameter LandingPage is not be null Parameter loginPageId is not valid #3

@bickyz

Description

@bickyz

Hi, I have been using "AST Write Batch PS5.ps1" successfully, however it is throwing following error now.

image

PS C:\Users\administrator.CORE> $response = Invoke-WebRequest https://graph.microsoft.com/beta/security/attacksimulation/simulations -Method 'POST' -Headers $headerParams -Body $requestBody -TimeoutSec 120 Invoke-WebRequest: {"error":{"code":"UnknownError","message":"{\"Code\":400,\"Message\":\"Bad request\",\"Target\":null,\"Details\":[{\"Code\":400,\"Message\":\"Parameter LandingPage is not be null\",\"Target\":null,\"Details\":null,\"InnerError\":null},{\"Code\":400,\"Message\":\"Parameter landingPageId is not valid\",\"Target\":null,\"Details\":null,\"InnerError\":null},{\"Code\":400,\"Message\":\"Parameter LoginPage is not be null\",\"Target\":null,\"Details\":null,\"InnerError\":null},{\"Code\":400,\"Message\":\"Parameter loginPageId is not valid\",\"Target\":null,\"Details\":null,\"InnerError\":null}],\"InnerError\":null}","innerError":{"date":"2024-09-10T13:10:19","request-id":"af2c126b-b226-4ac4-8d30-152cf1e39c40","client-request-id":"af2c126b-b226-4ac4-8d30-152cf1e39c40"}}} PS C:\Users\administrator.CORE>

Any help on this would be much appreciated, thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions