Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Invoke-WebRequest : { "statusCode": 404, "message": "Resource not found" } #14

@SGromov

Description

@SGromov

Hello!
After successful command "Add-PCAuthentication -cspappID APP ID -cspDomain FULL DOMAIN -credential $credentials"
Trying to delete a customer from sand box and having error:
PS C:\Windows\system32> $customer = Get-PCCustomer -tenantid Account MS ID
PS C:\Windows\system32> Remove-PCCustomer -tenantid $customer.id
Invoke-RestMethod : { "statusCode": 404, "message": "Resource not found" }
C:\Program Files\WindowsPowerShell\Modules\PartnerCenterModule\0.9.0.8\src\PartnerCenterCustomer.psm1:205 знак:17

  • ... $response = Invoke-RestMethod -Uri $url -Headers $headers -ContentTyp ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
    • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
      Невозможно вызвать метод для выражения со значением NULL.
      C:\Program Files\WindowsPowerShell\Modules\PartnerCenterModule\0.9.0.8\src\PartnerCenterCustomer.psm1:206 знак:5
  • $obj += $response.Substring(1) | ConvertFrom-Json
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions