Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Cannot use New-PartnerCustomerAgreement #292

@andrew951

Description

@andrew951

Steps to reproduce

What steps can reproduce the defect?
Please share the setup, commandline for vstest.console, sample project, target
framework etc.

New-PartnerCustomerAgreement -AgreementType MicrosoftCloudAgreement -TemplateId 998b88de-aa99-4388-a42c-1b3517d49490 -ContactEmail $customer.CloudEmailAddress -ContactFirstName $customer.CloudFirstName -ContactLastName $customer.CloudLastName -ContactPhoneNumber $customer.CloudPhoneNumber -CustomerId $tenantId

Expected behavior

Share the expected output

Actual behavior

What is the behavior observed?

New-PartnerCustomerAgreement : Microsoft Cloud Agreement Template ID '998b88de-aa99-4388-a42c-1b3517d49490' is no
longer supported.
At line:1 char:1
+ New-PartnerCustomerAgreement -AgreementType MicrosoftCloudAgreement - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [New-PartnerCustomerAgreement], PartnerException
    + FullyQualifiedErrorId : Microsoft.Store.PartnerCenter.PowerShell.Commands.NewPartnerCustomerAgreement

Diagnostic logs

Please share test platform diagnostics logs.
The logs may contain test assembly paths, kindly review and mask those before sharing.

Environment

Please share additional details about your environment.
Version

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     3.0.7      PartnerCenter                       {Add-PartnerCustomerCartLineItem, Add-PartnerCustomerUserR...

Other Notes

Get-PartnerAgreementDetail shows the correct template id as shown below:

Get-PartnerAgreementDetail

AgreementLink                                              AgreementType           TemplateId
-------------                                              -------------           ----------
https://docs.microsoft.com/en-us/partner-center/agreements MicrosoftCloudAgreement 998b88de-aa99-4388-a42c-1b3517d49490

However, running Get-PartnerAgreementDocument -TemplateId 998b88de-aa99-4388-a42c-1b3517d49490 results in the following

Get-PartnerAgreementDocument : An agreement document for template ID '998b88de-aa99-4388-a42c-1b3517d49490' in
language 'en-US' and for country 'US' was not found.
At line:1 char:1
+ Get-PartnerAgreementDocument -TemplateId 998b88de-aa99-4388-a42c-1b35 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Get-PartnerAgreementDocument], PartnerException
    + FullyQualifiedErrorId : Microsoft.Store.PartnerCenter.PowerShell.Commands.GetPartnerAgreementDocument

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