Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a861341

Browse files
committedAug 20, 2020
new file
1 parent 85ef611 commit a861341

File tree

3 files changed

+59
-2
lines changed

3 files changed

+59
-2
lines changed
 

‎articles/devtest-labs/TOC.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@
8383
href: devtest-lab-internal-support-message.md
8484
- name: Set policies and schedules
8585
href: devtest-lab-set-lab-policy.md
86+
- name: Configure lab identity 
87+
href: configure-lab-identity.md
8688
- name: Configure a lab to use a remote desktop gateway
8789
href: configure-lab-remote-desktop-gateway.md
8890
- name: Post announcement in a lab
@@ -95,8 +97,6 @@
9597
href: devtest-lab-auto-startup-vm.md
9698
- name: Scale your lab
9799
href: devtest-lab-scale-lab.md
98-
- name: Enable managed identities for lab VMs
99-
href: enable-managed-identities-lab-vms.md
100100
- name: Manage virtual machine bases
101101
items:
102102
- name: Configure Azure Marketplace images
@@ -167,6 +167,8 @@
167167
href: start-machines-use-automation-runbooks.md
168168
- name: Import virtual machines from another lab
169169
href: import-virtual-machines-from-another-lab.md
170+
- name: Enable managed identities for lab VMs
171+
href: enable-managed-identities-lab-vms.md
170172
- name: Use environments in a lab
171173
items:
172174
- name: Create an environment
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
title: Configure a lab identity in Azure DevTest Labs
3+
description: Learn how to configure a lab identity in Azure DevTest.
4+
ms.topic: article
5+
ms.date: 08/20/2020
6+
---
7+
8+
# Configure a lab identity
9+
10+
A common challenge when building cloud applications is how to manage the credentials in your code for authenticating to cloud services. Keeping the credentials secure is an important task. Ideally, the credentials never appear on developer workstations and aren't checked into source control. Azure Key Vault provides a way to securely store credentials, secrets, and other keys, but your code must authenticate to Key Vault to retrieve them.
11+
12+
The managed identities for Azure resources feature in Azure Active Directory (Azure AD) solve this problem. The feature provides Azure services with an automatically managed identity in Azure AD. You can use the identity to authenticate to any service that supports Azure AD authentication, including Key Vault, without any credentials in your code. Learn more about [managed identities on Azure](../active-directory/managed-identities-azure-resources/overview.md).
13+
14+
There are two types of managed identities:
15+
16+
## System-assigned managed identity
17+
18+
A **system-assigned managed identity** is enabled directly on an Azure service instance. When the identity is enabled, Azure creates an identity for the instance in the Azure AD tenant that's trusted by the subscription of the instance. After the identity is created, the credentials are provisioned onto the instance. The life cycle of a system-assigned identity is directly tied to the Azure service instance that it's enabled on. If the instance is deleted, Azure automatically cleans up the credentials and the identity in Azure AD.
19+
20+
### Scenarios for using lab’s system assigned identity
21+
22+
Every DevTest Labs is created with a system assigned identity that remains valid for the life of the lab. The system assigned identity is used for the following purposes:
23+
24+
- All [Azure Resource Manager](devtest-lab-create-environment-from-arm.md) based deployments used to spin up multi-VM and/or platform as a service environment will be executed using the lab’s system assigned identity
25+
- Disk encryption for lab disks using a customer-managed key is supported through lab’s system assigned identity. By providing explicit access to the lab’s identity to access your disk encryption set, the lab can encrypt all virtual machine disks on your behalf. Learn more about [how to enable Disk Encryption](encrypt-disks-customer-managed-keys.md) for your lab disks using a customer managed key.
26+
27+
### Configure identity
28+
29+
This section demonstrates how to configure lab's identity policy.
30+
31+
> [!NOTE]
32+
> For labs created prior to 8/10/2020, system assigned identity will be set to Off. As a lab owner, you can turn it on, in case you intend to use labs for the purposes listed in the previous section.
33+
>
34+
> For new labs created after 8/10/2020, the lab's system assigned identity is set to On by default and lab owner will not be able to turn this off for the lifecycle of the lab.
35+
36+
1. Sign in to the [Azure portal](https://portal.azure.com).
37+
1. Search for **DevTest Labs**.
38+
1. From the list of labs, select the lab you want.
39+
1. Select **Configuration and policies** -> **Identity (Preview)**.
40+
41+
> [!div class="mx-imgBorder"]
42+
> ![Configure identity](./media/configure-lab-identity/configure-identity.png)
43+
44+
## User-assigned managed identity
45+
46+
A user-assigned managed identity is created as a standalone Azure resource. Through a create process, Azure creates an identity in the Azure AD tenant that's trusted by the subscription in use. After the identity is created, the identity can be assigned to one or more Azure service instances. The life cycle of a user-assigned identity is managed separately from the life cycle of the Azure service instances to which it's assigned.
47+
48+
DevTest Labs supports user assigned identities for both virtual machines and Azure Resource Manager based environments. For more information, see the following topics:
49+
50+
- [Add a user-assigned identity to deploy lab ARM environments](use-managed-identities-environments.md)
51+
- [Add a user-assigned identities to deploy lab virtual machines](enable-managed-identities-lab-vms.md)
52+
53+
## Next steps
54+
55+
Review [Configure cost management](devtest-lab-configure-cost-management.md)
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.