Set up a test environment for your app - Microsoft identity platform (2024)

  • Article

To help move your app through the development, test, and production lifecycle, set up a Microsoft Entra test environment. You can use your Microsoft Entra test environment during the early stages of app development and long-term as a permanent test environment.

Dedicated test tenant or production Microsoft Entra tenant?

Your first task is to decide between using a Microsoft Entra tenant dedicated to testing or your production tenant as your test environment.

Using a production tenant can make some aspects of application testing easier, but it requires the right level of isolation between test and production resources. Isolation is especially important for high-privilege scenarios.

Don't use your production Microsoft Entra tenant if:

  • Your application uses settings that require tenant-wide uniqueness. For example, your app might need to access tenant resources as itself, not on behalf of a user, by using app-only permissions. App-only access requires admin consent which applies to the entire tenant. Such permissions are hard to scope down safely within a tenant boundary.
  • You have low tolerance of risk for potential unauthorized access of test resources by tenant members.
  • Configuration changes could negatively impact the critical operation of your production environment.
  • You're unable to create users or other test data in your production tenant.
  • Policies are enabled in your production tenant that require user interaction during authentication. For example, if multi-factor authentication is required for all users, you can't use automated sign-ins for integration testing.
  • Adding non-production resources and/or workload to your production tenant would exceed service or throttling limits for the tenant.

If any of these restrictions apply, set up a test environment in a separate tenant.

If none of these restrictions apply, you can set up a test environment in your production tenant. Be aware that Global Administrators in your production tenant can access its resources and change its configuration at any time. To prevent access to any test resources or configuration, put that data in a separate tenant.

Set up a test environment in a separate tenant

If you can't safely constrain your test app in your production tenant, create a separate tenant for development and testing purposes.

Get a test tenant

If you don't already have a dedicated test tenant, you can create one for free using the Microsoft 365 Developer Program or manually create one yourself.

Join the Microsoft 365 Developer Program (recommended)

The Microsoft 365 Developer Program is free and can have test user accounts and sample data packs automatically added to the tenant.

  1. Click on the Join now button on the screen.
  2. Sign in with a new Microsoft Account or use an existing (work) account you already have.
  3. On the sign-up page select your region, enter a company name and accept the terms and conditions of the program before you click Next.
  4. Click on Set Up Subscription. Specify the region where you want to create your new tenant, create a username, domain, and enter a password. This will create a new tenant and the first administrator of the tenant.
  5. Enter the security information, which is needed to protect the administrator account of your new tenant. This will set up multi-factor authentication for the account.

Manually create a tenant

You can manually create a tenant, which will be empty upon creation and will have to be configured with test data.

Populate your tenant with users

Tip

Steps in this article might vary slightly based on the portal you start from.

For convenience, you may want to invite yourself and other members of your development team to be guest users in the tenant. This will create separate guest objects in the test tenant, but means you only have to manage one set of credentials for your corporate account and your test account.

  1. Sign in to the Microsoft Entra admin center as at least an Application Developer.
  2. Browse to Identity > Users > All users.
  3. Select New user > Invite external user and invite your work account email address.
  4. Repeat for other members of the development and/or testing team for your application.

You can also create test users in your test tenant. If you used one of the Microsoft 365 sample packs, you may already have some test users in your tenant. If not, you should be able to create some yourself as the tenant administrator.

  1. Browse to Identity > Users > All users.
  2. Select New user > Create new user and create some new test users in your directory.

Get a Microsoft Entra subscription (optional)

If you want to fully test Microsoft Entra ID P1 or P2 features on your application, you'll need to sign up your tenant for a Premium P1 or Premium P2 license.

If you signed up using the Microsoft 365 Developer program, your test tenant will come with Microsoft Entra ID P2 licenses. If not, you can still enable a one month free trial of Microsoft Entra ID P1 or P2.

Create and configure an app registration

You'll need to create an app registration to use in your test environment. This should be a separate registration from your eventual production app registration, to maintain security isolation between your test environment and your production environment. How you configure your application depends on the type of app you are building. For more information, check out the app registration steps for your app scenario in the left navigation pane, like this article for web application registration.

Populate your tenant with policies

If your app will primarily be used by a single organization (commonly referred to as single tenant), and you have access to that production tenant, then you should try to replicate the settings of your production tenant that can affect your app's behavior. That will lower the chances of unexpected errors when operating in production.

Conditional Access policies

Replicating Conditional Access policies ensures you don't encounter unexpected blocked access when moving to production and your application can appropriately handle the errors it's likely to receive.

Viewing your production tenant Conditional Access policies may need to be performed by a Conditional Access Administrator.

  1. Go to Identity > Applications > Enterprise applications > Conditional Access.
  2. View the list of policies in your tenant. Click the first one.
  3. Navigate to Cloud apps or actions.
  4. If the policy only applies to a select group of apps, then move on to the next policy. If not, then it will likely apply to your app as well when you move to production. You should copy the policy over to your test tenant.

In a new tab or browser session, sign in to the Microsoft Entra admin center as at least a Conditional Access Administrator to access your test tenant.

  1. Browse to Protection > Conditional Access.
  2. Select Create new policy
  3. Copy the settings from the production tenant policy, identified through the previous steps.

Permission grant policies

Replicating permission grant policies ensures you don't encounter unexpected prompts for admin consent when moving to production.

Browse to Identity > Applications > Enterprise applications > Consent and permissions > User consent settings. Copy the settings there to your test tenant.

Token lifetime policies

Replicating token lifetime policies ensures tokens issued to your application don't expire unexpectedly in production.

Token lifetime policies can currently only be managed through PowerShell. Read about configurable token lifetimes to learn about identifying any token lifetime policies that apply to your whole production organization. Copy those policies to your test tenant.

Set up a test environment in your production tenant

If you can safely constrain your test app in your production tenant, go ahead and set up your tenant for testing purposes.

Create and configure an app registration

You'll need to create an app registration to use in your test environment. This should be a separate registration from your eventual production app registration, to maintain security isolation between your test environment and your production environment. How you configure your application depends on the type of app you are building. For more information, check out the app registration steps for your app scenario in the left navigation pane.

Create some test users

You'll need to create some test users with associated test data to use while testing your scenarios. This step might need to be performed by an admin.

  1. Browse to Identity > Users > All users.
  2. Select New user > Create new user and create some new test users in your directory.

Add the test users to a group (optional)

For convenience, you can assign all these users to a group, which makes other assignment operations easier.

  1. Browse to Identity > Groups > All groups.
  2. Select New group.
  3. Select either Security or Microsoft 365 for group type.
  4. Name your group.
  5. Add the test users created in the previous step.

Restrict your test application to specific users

You can restrict the users in your tenant that are allowed to use your test application to specific users or groups, through user assignment. When you created an app through App registrations, a representation of your app was created in Enterprise applications as well. Use the Enterprise applications settings to restrict who can use the application in your tenant.

Important

If your app is a multi-tenant app, this operation won't restrict users in other tenants from signing into and using your app. It will only restrict users in the tenant that user assignment is configured in.

For detailed instructions on restricting an app to specific users in a tenant, go to restricting your app to a set of users.

Next steps

Learn about Microsoft Entra usage constraints and service limits you might hit here. General Azure subscription and service limits, quotas, and constraints can be found here.

For more detailed information about test environments, read Securing Azure environments with Microsoft Entra ID.

Set up a test environment for your app - Microsoft identity platform (2024)

FAQs

How do you set up a test environment? ›

Activities Performed for Test Environment Setup
  1. Determine if test environment needs archiving in order to take back-ups.
  2. Verify the network configuration.
  3. Identify the required server operating system, databases and other components.
  4. Identify the number of license required by the test team.

How do I create a test environment in Azure? ›

  1. Log on to Lifecycle Services. ...
  2. Create a project. ...
  3. Connect the project to your Azure subscription. ...
  4. Connect your corporate network to the Azure virtual network. ...
  5. Deploy a test environment on Azure. ...
  6. Prepare AX 2012 R3 for use. ...
  7. Learn more about the service accounts for this environment.
Nov 28, 2021

Which type of Microsoft Identity is used for identifying an application? ›

You must register each app that uses the Microsoft identity platform in the Microsoft Entra admin center App registrations. The app registration process collects and assigns these values for your app: An Application (client) ID that uniquely identifies your app.

How to test app registration in Azure? ›

To test the application registration using Azure AD user:
  1. Open the application and enter Host, Port, and Resource App Id.
  2. Click SAVE SETTINGS.
  3. On the Login screen, Enter User Name and Password.
  4. Click Login. ...
  5. Enter Username and Password on AZURE AD login page.
  6. Click Sign In to register the application with SMP.

What is a test environment example? ›

For instance, a bank is testing a new transfer system. It would be incredibly improper to shift money around real accounts to ensure that the brand new system works correctly. Also, a test environment provides precise feedback about the quality and behavior of the application under test.

How do you set up an environment in Azure? ›

Create an environment type

In the Azure portal, go to Azure Deployment Environments. In Dev centers, select your dev center. In the left menu under Environment configuration, select Environment types, and then select Create. In Create environment type, enter the following information, and then select Add.

How do I set up an API test environment? ›

Virtualization is the best way to set up your API test environments. It's the process of using a tool to create a virtual copy of your API, which mirrors all the specifications of your production API, that will be used in place of that production API.

How do I create a Microsoft test? ›

Try it!
  1. In the My forms tab, select New Form or New Quiz.
  2. Name your form and give it a description.
  3. Select Add Question and choose the type of question you want to add.
  4. Select Preview to see how your form will look on a computer or mobile device.
  5. To add a background color or image to your form, select Theme.

What is Microsoft Identity platform Azure? ›

The Microsoft identity platform is a cloud identity service that allows you to build applications your users and customers can sign in to using their Microsoft identities or social accounts. It authorizes access to your own APIs or Microsoft APIs like Microsoft Graph.

What is the Identity platform? ›

Okta. April 17, 2024. An Identity platform is a centralized framework that manages the digital identities of humans and devices, enabling organizations to authorize secure user access to online resources for employees and customers.

Which account types are supported by Microsoft Identity platform? ›

  • Microsoft Entra ID.
  • External ID.
  • Global Secure Access.
  • ID Governance.
  • Permissions Management.
  • Microsoft Security documentation.
Apr 24, 2024

How to create a test user in Azure? ›

Create an Azure AD test user
  1. Load required key pairs and certificates for Code Signing.
  2. Prepare Circle of Trust certificates.
  3. Import and install certificates for Circle of Trust.
  4. Turn on Code Signing.
  5. Create Code Signing key pairs and certificates.
  6. Specify custom rules in ECC firewall.
  7. Change your Root of Trust configuration.

How do I verify my Microsoft Azure App? ›

Verification Instructions
  1. Step 1: Become a Verified Member of the Microsoft Partner Network (MPN) ...
  2. Step 2: Verify Your Domain with Microsoft. ...
  3. Step 3: Create an Azure App. ...
  4. Step 4: Add your Partner Global Account (PGA) ID to your Azure App.

Who is responsible for setting up test environment? ›

Design and implementation of the test environment: The Test Environment Manager is responsible for designing and implementing the test environment, including hardware, software, network, and data configurations.

What is a good testing environment? ›

A good test environment has the following characteristics. It's a copy of, or very closely resembles, the live environment. This means it includes the same code, data, configuration, operating system, and functionality. It functions as a sandbox.

How do you set up a learning environment? ›

13 ways to create a positive classroom environment
  1. Build positive relationships. ...
  2. Arrange the physical environment. ...
  3. Set high academic expectations. ...
  4. Provide positive reinforcement. ...
  5. Be open to feedback. ...
  6. Encourage collaboration. ...
  7. Use current curriculum and teaching methods. ...
  8. Be there for them.
Feb 3, 2023

How do you create a test infrastructure? ›

Process:
  1. Create a test environment for the project's regular releases.
  2. For the latest releases, establish a test environment.
  3. Build solutions for server and client environment issues.
  4. Decides the test tools for the test execution, design, and planning.
  5. Choose tools for problem reporting and debugging.

Top Articles
About Monero
7 Ways to Meet New Friends on a Cruise Ship
Katie Pavlich Bikini Photos
Gamevault Agent
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Free Atm For Emerald Card Near Me
Craigslist Mexico Cancun
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Doby's Funeral Home Obituaries
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Select Truck Greensboro
Things To Do In Atlanta Tomorrow Night
Non Sequitur
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Craigslist In Flagstaff
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Geometry Review Quiz 5 Answer Key
Walgreens Alma School And Dynamite
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Pixel Combat Unblocked
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Rogold Extension
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Weekly Math Review Q4 3
Facebook Marketplace Marrero La
Nobodyhome.tv Reddit
Topos De Bolos Engraçados
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hampton In And Suites Near Me
Stoughton Commuter Rail Schedule
Bedbathandbeyond Flemington Nj
Free Carnival-themed Google Slides & PowerPoint templates
Otter Bustr
Selly Medaline
Latest Posts
Article information

Author: Greg Kuvalis

Last Updated:

Views: 6045

Rating: 4.4 / 5 (55 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Greg Kuvalis

Birthday: 1996-12-20

Address: 53157 Trantow Inlet, Townemouth, FL 92564-0267

Phone: +68218650356656

Job: IT Representative

Hobby: Knitting, Amateur radio, Skiing, Running, Mountain biking, Slacklining, Electronics

Introduction: My name is Greg Kuvalis, I am a witty, spotless, beautiful, charming, delightful, thankful, beautiful person who loves writing and wants to share my knowledge and understanding with you.