Script for automated placement of the Microsoft PartnerId in the azure user account.
This script has been run successfully on Windows systems and Azure Cloud Shell so far. Linux systems and MacOS systems are theoretically also executable, but without guarantee.
partnerId
- Microsoft Partner Id. Please use your location Partner Id, not your Global Partner Id.partnerTenantId
- Microsoft Azure Tenant Id. This is the Home Azure Tenant Id of the user account. This is required if the Home Azure Tenant cannot be fully resolved at login, so it is requested as a preventive measure.
- Download
set-pal.ps1
file - Open PowerShell Console
- Navigate to the download directory
- Execute command
.\set-pal.ps1 -partnerId <PartnerId> -partnerTenantId <AzureTenantId>
- Follow instructions of the console output
- On some systems the script cannot be executed without further ado, for this the ExecutionPolicy must be checked first. Here please execute the following command
Get-ExecutionPolicy -Scope CurrentUser
. If the result is notUnrestricted
, you have to execute the commandSet-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
before executing the script.
- Upload
set-pal.ps1
file to cloud shell - Execute command
.\set-pal.ps1 -partnerId <PartnerId> -partnerTenantId <AzureTenantId>
- Follow instructions of the console output