Skip to content

About

PowerShell script for setting up required Atea access for Azure CSP customers

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

.# Azure Role Assignment – Customer Guide

This guide explains why certain Azure roles need to be configured in your environment, and walks you through how to run the provided script yourself in the Azure portal.


Table of Contents


Why these roles are needed

As part of the Microsoft Cloud Solution Provider (CSP) program, Atea manages your Azure environment on your behalf. To do this effectively, Atea's support team uses dedicated security groups — called Admin Agent groups — that need specific permissions in your Azure tenant.

The script assigns two roles to these groups:

Role What it allows
Support Request Contributor Allows Atea to create and manage Azure support tickets on your behalf
Quota Request Operator Allows Atea to request resource quota increases in Azure on your behalf

These roles are narrow in scope — they do not grant access to your data, virtual machines, databases, or any other resources. They only allow Atea to interact with Microsoft Support and quota management on your behalf.

Without these roles in place, Atea cannot open support tickets or request capacity changes directly with Microsoft, which can delay issue resolution.


Before you start – elevating your access

To run the script, your account needs either the Owner or User Access Administrator role on the Azure scope you want to use. If your account already has one of these roles directly assigned, you can skip this section.

If you are a Global Administrator in your Microsoft Entra ID (formerly Azure Active Directory) but do not yet have either role, you can grant yourself temporary access using the steps below.

If you are unsure whether you have the required role already, your Atea consultant can check this for you before you proceed.

Steps to elevate your access

  1. Sign in to the Azure portal.

  2. In the left-hand menu, click Microsoft Entra ID (or search for it in the top search bar).

  3. In the left-hand menu of Microsoft Entra ID, scroll down and click Properties.

  4. Scroll to the bottom of the Properties page and find the section "Access management for Azure resources".

  5. Toggle the setting "Can manage access to all Azure subscriptions and management groups in this directory" to Yes.

    Elevate access toggle

  6. Click Save.

  7. Wait 1–2 minutes for the role assignment to take effect.

You are now ready to run the script. The toggle grants you User Access Administrator at the root level — the script will detect this automatically.

Security note: This elevated access should only be active while needed. You will be asked to revert this setting after the script has run — see After the script completes.


Running the script in Azure Cloud Shell

Azure Cloud Shell is a browser-based terminal built into the Azure portal. It is always signed in as you — no password or login command is needed inside the shell.

Step 1 – Open Cloud Shell

  1. Sign in to https://portal.azure.com with the same account you used to elevate access.

  2. Click the Cloud Shell icon in the top toolbar — it looks like a small terminal window (>_), located to the right of the search bar.

    If you have never used Cloud Shell before, a setup wizard will appear. Select PowerShell as the shell type and click Create storage (or confirm creating a storage account) to continue. This is a one-time setup.

  3. A terminal panel will open at the bottom of the screen. Wait until you see a prompt like:

    PS /home/yourname>
    

    This confirms Cloud Shell is ready.

  4. Make sure the shell type shown in the top-left of the Cloud Shell panel says PowerShell. If it says Bash, click the dropdown and switch to PowerShell.


Step 2 – Upload the script file

The script must be uploaded as a file to Cloud Shell — do not try to run commands from it manually.

Note: The script file is provided as a .txt file (RBAC_customer.txt). This is intentional — some systems and email clients block .ps1 attachments. The file contains valid PowerShell and can be executed directly from Cloud Shell as described below.

  1. In the Cloud Shell toolbar (the bar just above the terminal), click the Upload/Download files button. It looks like a page icon with an arrow, or may be labelled Manage files.

  2. Select Upload.

  3. In the file picker that opens, navigate to the location where you saved the RBAC_customer.txt file (provided by your Atea consultant) and select it.

  4. Click Open. The file will be uploaded to your Cloud Shell home directory.

  5. To confirm the upload succeeded, type the following in the terminal and press Enter:

    Get-ChildItem

    You should see RBAC_customer.txt listed in the output.


Step 3 – Run the script

  1. In the Cloud Shell terminal, type the following command and press Enter:

    pwsh './RBAC_customer.txt'
  2. The script will start and display your current account and tenant information:

    === Azure Role Assignment Script ===
    Connected as : yourname@yourdomain.com
    Tenant ID    : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    Object ID    : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    

    Verify that the account shown is the correct one before continuing.

  3. The script will scan your role assignments and display what it finds:

    === Your role assignments ===
      [Root Group]
    

    This confirms your account has the required permissions to proceed.

  4. You will then be prompted to choose at which level to assign the roles:

      1. Root Management Group
      2. Management Group (child)
      3. Subscription
    
    Enter choice (1, 2 or 3):
    

    In most cases, your Atea consultant will have advised you which number to choose. If in doubt, select 1 — this assigns the roles at the highest level and ensures all subscriptions in your tenant are covered.

    Type the number and press Enter.

  5. If you chose Management Group or Subscription, the script will display a numbered list. Enter the number(s) of the items you want to include, separated by commas (e.g. 1,3), and press Enter.

  6. The script will assign the roles and print a confirmation for each:

    === Assigning roles ===
    
    Scope: Root Group
      Assigned 'Support Request Contributor' to 'd2bbd7ab-3014-484e-9690-fbd3b3ac19dc' on Root Group.
      Assigned 'Quota Request Operator' to 'd2bbd7ab-3014-484e-9690-fbd3b3ac19dc' on Root Group.
    
    === Role assignment complete ===
    
    All Admin Agent groups were found and had roles assigned.
    

    Lines showing already assigned are expected and mean the role was already in place — no duplicate was created. Groups are shown by their Object ID rather than a name — this is normal, since the Admin Agent groups are "Foreign group" objects linked in via the Atea partner relationship and don't have a resolvable name in your directory.

    If the last line instead reads === Admin Agent groups NOT found - no roles were assigned === followed by one or more Object IDs, it means those specific Admin Agent groups are not linked to your tenant — this is expected if not every support tier applies to you, but check with your Atea consultant if you are unsure.

  7. Scroll through the output and confirm there are no lines in red. If everything looks green (and any yellow "not found" summary matches what your consultant expects), the script has completed successfully.


After the script completes

Revert your elevated access

If you enabled the elevation toggle in the Before you start section, disable it again now:

  1. In the Azure portal, go to Microsoft Entra ID → Properties.
  2. Toggle "Can manage access to all Azure subscriptions and management groups in this directory" back to No.
  3. Click Save.

This returns your account to its normal permissions. The role assignments created by the script for the Atea Admin Agent groups remain in place and are not affected.


If you encounter any issues during the process, contact your Atea consultant for assistance.

About

PowerShell script for setting up required Atea access for Azure CSP customers

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages