The partner ID is the Microsoft Cloud Partner Program ID for your organization. Be sure to use the Associated Partner ID shown on your partner profile.
*Challenge proposed on August 25th 2023. #Marcos Paulo Falcirolli
Option 1: Run in Azure Cloud Shell
Open the Azure portal and navigate to the Cloud Shell.
Select PowerShell as the environment.
Create a new File in Power Shell script tool and past all content of the file:
script/link-partner.ps1
Save the script with the name link-partner.ps1 and run the script by running the following command:
./link-partner.ps1
Option 2: Run in PowerShell on your local machine
Install the Azure PowerShell module.
Copy the content of the file /script/link-partner.ps1 to a local file inside of the current directory.
Run the script by running the following command:
./link-partner.ps1
Note: You may need to authenticate to your Azure account before running the script. You can do this by running the Connect-AzAccount cmdlet and following the prompts.
sequenceDiagram
User-->>Shell Prompt: Start Script
Shell Prompt-->>User: List all User's associate Tenants
User-->>Shell Prompt: Input MPN ID
User-->>Shell Prompt: Input Tenant ID
Note left of Final Output: See "Output" session bellow for more detais
Shell Prompt-->>Final Output: List PAL Status of the Tenant plus User Subscriptions Scope
MPN ID: [Partner MPN ID]
Tenant: [Tenant ID]
{
Tenant: xxxx-xxxx-xxxx-xxxx - xxx,
PAL: Registered|Already registered, update,
Subscriptions: {
(subscription: yyy, ID: xxxxx-xxxx-xxxx-xxxx, Owner: true|false, Contributor: true|false, Reader: true|false),
(subscription: yyy, ID: xxxxx-xxxx-xxxx-xxxx, Owner: true|false, Contributor: true|false, Reader: true|false)
...
}
}