最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

powershell - Use Get-PartnerCustomerSubscription - Stack Overflow

programmeradmin1浏览0评论

Whats wrong with my code? I get Forbidden when i try to run the Get-PartnerCustomerSubscription part.:

Import-Module-Module -Name PartnerCenter -Scope CurrentUser

Connect-PartnerCenter -Scope

$customers = Get-PartnerCustomer

foreach ($customer in $customers) {
    Write-Output "Customer: $($customer.CompanyProfile.CompanyName)"
    Write-Output "CustomerId: $($customer.CustomerId)"
    $subscriptions = Get-PartnerCustomerSubscription -CustomerId $customer.CustomerId
    Write-Output $subscriptions
}

Im trying to get every subscription from all the tenants we have partner connection for. Im a global admin in my tenant.

发布评论

评论列表(0)

  1. 暂无评论