az login retrieving tenants and subscriptions for the selection

Azure Login: Retrieve Tenants & Subscriptions

By Jessica Davis
AD

When working with Azure, managing your resources efficiently is crucial. One essential task is retrieving your tenants and subscriptions for selection, which can be achieved using the Azure portal, Azure CLI, or Azure PowerShell. In this guide, we'll explore these methods to help you navigate your Azure resources seamlessly.

Before we dive into the methodologies, let's quickly understand why retrieving tenants and subscriptions is important. Tenants and subscriptions are the fundamental units in Azure's resource management. They help you organize and manage your resources, and understanding them is key to effectively using Azure services.

Azure Portal

The Azure portal is the web-based interface for managing your Azure resources. It provides a user-friendly platform to handle your tenants and subscriptions.

AD
the tenant forms page on a dark background
the tenant forms page on a dark background
Tenant Rental Application - Print and Handout or use Digitally
Tenant Rental Application - Print and Handout or use Digitally
Tenant Application Form | Rental Screening, Landlord Screening (DOC PDF)
Tenant Application Form | Rental Screening, Landlord Screening (DOC PDF)

To retrieve your tenants and subscriptions through the Azure portal:

  1. Sign in to the Azure portal.
  2. Click on your profile picture or initials in the top-right corner.
  3. Select "Switch directory + subscription" from the dropdown menu.
  4. Here, you'll find a list of all your tenants and subscriptions. Choose the one you'd like to work with.

Managing Tenants

To switch between tenants, follow the above steps. You can also create, delete, or configure tenant settings from the "Azure Active Directory" service in the portal.

Tenant Screening Kit | Verleih Antragsformular, Zustimmung & Screening-Kriterien | Alberta Landlor Forms | Bearbeitbar, sofort herunterladen
Tenant Screening Kit | Verleih Antragsformular, Zustimmung & Screening-Kriterien | Alberta Landlor Forms | Bearbeitbar, sofort herunterladen
Tenant Application Forms Bundle, Rental Screening, Editable Canva Template (PDF)
Tenant Application Forms Bundle, Rental Screening, Editable Canva Template (PDF)
an orange and white keyboard is shown with the email address button highlighted on the screen
an orange and white keyboard is shown with the email address button highlighted on the screen

Here's how you can create a new tenant:

  1. Navigate to the "Azure Active Directory" service.
  2. Under "Manage", click on "Properties".
  3. Click on the "Rename directory" link to start the process of creating a new tenant.

Managing Subscriptions

To manage your subscriptions, go back to the "Subscriptions" view. Here, you can create, delete, or configure your subscriptions. You can also view the subscription details, such as theID, state, and billing settings.

AD

To create a new subscription:

Diy Birthday Gifts For Friends, Deni Denials, Document Sign, Diy Birthday Gifts, Id Badge, Mood Pics
Diy Birthday Gifts For Friends, Deni Denials, Document Sign, Diy Birthday Gifts, Id Badge, Mood Pics
Screening New Tenants? UK Tenancy Application Form | Rental Vetting Template | Editable Word Document
Screening New Tenants? UK Tenancy Application Form | Rental Vetting Template | Editable Word Document
an iphone screen showing the account details for various items and numbers, including credit cards
an iphone screen showing the account details for various items and numbers, including credit cards
One App — Premium Subscription Tracking Login Experience ✨ by Airzon Agency on Muzli
One App — Premium Subscription Tracking Login Experience ✨ by Airzon Agency on Muzli
Rental Application Form | Tenant Screening & Property Rental Application | Landlord Tenant Form PDF
Rental Application Form | Tenant Screening & Property Rental Application | Landlord Tenant Form PDF
the text on the phone is clearly visible for us to see in this screenshot
the text on the phone is clearly visible for us to see in this screenshot
  1. Click on the "Add" button in the "Subscriptions" view.
  2. Provide the necessary details, such as the subscription name and billing information.
  3. Click "Sign up" to create the subscription.

Azure CLI

The Azure CLI provides a consistent environment for managing Azure services from the command line or within scripts. To retrieve your tenants and subscriptions using Azure CLI, follow these steps:

Note: You must log in using `az login` before performing these commands.

Listing Tenants

The `az account list-locations` command lists all the available tenants. Here's an example:

AD
```bash az account list-locations --output table ```

The output will display a table with columns like 'displayName', 'id', 'name', etc., detailing the available tenants.

Tenant Screening Kit | Rental Application Checklist & Landlord Reference Call Script | Digital Download
Tenant Screening Kit | Rental Application Checklist & Landlord Reference Call Script | Digital Download
Tenant Rental Application Template, Tenant Lease Questionnaire Form, Residential Landlord Tenant Screening Form
Tenant Rental Application Template, Tenant Lease Questionnaire Form, Residential Landlord Tenant Screening Form
Tenant Screening Checklist - Edit in MS Word - Printable Form
Tenant Screening Checklist - Edit in MS Word - Printable Form
the login screen for an app that allows you to register and pay on their phone
the login screen for an app that allows you to register and pay on their phone
the login screen on an iphone, which is open to allow you to sign in
the login screen on an iphone, which is open to allow you to sign in
Illinois Section 8 Tenant Screening Pack – Housing Voucher Landlord Forms
Illinois Section 8 Tenant Screening Pack – Housing Voucher Landlord Forms
Tenant Information Update Forms [20 Free Templates]
Tenant Information Update Forms [20 Free Templates]
Rental Application Form Template: Simplify Tenant Screening Today
Rental Application Form Template: Simplify Tenant Screening Today
the login screen for an email account on your iphone or ipad, which is not available
the login screen for an email account on your iphone or ipad, which is not available
Tenant Screening Checklist Bundle for Landlords and Property Managers
Tenant Screening Checklist Bundle for Landlords and Property Managers
Tenant Contact Information Form - Free Sample, Example & Format Templates
Tenant Contact Information Form - Free Sample, Example & Format Templates
the login screen for an annuities login page with blue and orange accents
the login screen for an annuities login page with blue and orange accents
Ideal Tenants
Ideal Tenants
Tenant Information Update Forms At Mallorysoraya
Tenant Information Update Forms At Mallorysoraya

Listing Subscriptions

The `az account list` command lists all the available Azure subscriptions. Here's how you can do it:

```bash az account list --output table ```

The output will display a table with columns like 'name', 'id', 'state', etc., detailing the available subscriptions.

AD

You can filter these lists based on specific parameters, such as ID or name, to streamline your selection process.

Azure PowerShell

Azure PowerShell is an open-source, cross-platform command-line and脚本shell tool used to manage Azure resources. Retrieving tenants and subscriptions in Azure PowerShell requires using the `Get-AzContext` cmdlet.

Note: You must log in using `az login` before performing these commands.

Retrieving Tenants

To retrieve a list of your tenants, use the `Select-Object` cmdlet to extract the 'DisplayName' value from the output:

```powershell (Get-AzContext).DisplayName ```

Retrieving Subscriptions

The `Get-AzSubscription` cmdlet retrieves a list of your Azure subscriptions. Here's an example:

```powershell Get-AzSubscription | Select Name, TenantID, ID ```

The output will display a table with columns like 'Name', 'TenantID', 'ID', etc., detailing the available subscriptions.

In the vast world of Azure, understanding and managing your tenants and subscriptions is not just beneficial, but also a fundamental step towards effective cloud resource management. With the methods outlined above, you'll have a solid handle on retrieving and managing your Azure tenants and subscriptions, enabling you to make the most of Azure's vast offering.

AD