Skip to content

fabio-padua/ps2partnerlink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

Linking Tenants without a Partner MPN ID

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

How to Use

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.

Sequence Diagram

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
Loading

Schema:

Input:

MPN ID: [Partner MPN ID]
Tenant: [Tenant ID]

Output

	{
		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)
			...
			}
	}

Documentation

Microsoft Official Documentation

Management Partner

About

Script Power-Shell to link partner ID

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages