Skip to content

Commit 613cd2f

Browse files
authored
Merge pull request #189039 from barclayn/mi-clarity-test
Mi clarity test
2 parents 118368d + 6e37ee5 commit 613cd2f

File tree

2 files changed

+28
-23
lines changed

2 files changed

+28
-23
lines changed

articles/active-directory/managed-identities-azure-resources/how-managed-identities-work-vm.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.subservice: msi
1212
ms.devlang:
1313
ms.topic: conceptual
1414
ms.custom: mvc
15-
ms.date: 01/11/2022
15+
ms.date: 02/17/2022
1616
ms.author: barclayn
1717
ms.collection: M365-identity-device-management
1818
---
@@ -39,7 +39,7 @@ The following diagram shows how managed service identities work with Azure virtu
3939
|------|----------------------------------|--------------------------------|
4040
| Creation | Created as part of an Azure resource (for example, an Azure virtual machine or Azure App Service). | Created as a stand-alone Azure resource. |
4141
| Life cycle | Shared life cycle with the Azure resource that the managed identity is created with. <br/> When the parent resource is deleted, the managed identity is deleted as well. | Independent life cycle. <br/> Must be explicitly deleted. |
42-
| Sharing across Azure resources | Cannot be shared. <br/> It can only be associated with a single Azure resource. | Can be shared. <br/> The same user-assigned managed identity can be associated with more than one Azure resource. |
42+
| Sharing across Azure resources | Can’t be shared. <br/> It can only be associated with a single Azure resource. | Can be shared. <br/> The same user-assigned managed identity can be associated with more than one Azure resource. |
4343
| Common use cases | Workloads that are contained within a single Azure resource. <br/> Workloads for which you need independent identities. <br/> For example, an application that runs on a single virtual machine | Workloads that run on multiple resources and which can share a single identity. <br/> Workloads that need pre-authorization to a secure resource as part of a provisioning flow. <br/> Workloads where resources are recycled frequently, but permissions should stay consistent. <br/> For example, a workload where multiple virtual machines need to access the same resource |
4444

4545
## System-assigned managed identity
@@ -48,7 +48,7 @@ The following diagram shows how managed service identities work with Azure virtu
4848

4949
2. Azure Resource Manager creates a service principal in Azure AD for the identity of the VM. The service principal is created in the Azure AD tenant that's trusted by the subscription.
5050

51-
3. Azure Resource Manager configures the identity on the VM by updating the Azure Instance Metadata Service identity endpoint with the service principal client ID and certificate.
51+
3. Azure Resource Manager updates the VM identity using the Azure Instance Metadata Service identity endpoint, providing the endpoint with the service principal client ID and certificate.
5252

5353
4. After the VM has an identity, use the service principal information to grant the VM access to Azure resources. To call Azure Resource Manager, use Azure role-based access control (Azure RBAC) to assign the appropriate role to the VM service principal. To call Key Vault, grant your code access to the specific secret or key in Key Vault.
5454

articles/active-directory/managed-identities-azure-resources/tutorial-linux-vm-access-storage-sas.md

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: 'Tutorial: Access Azure Storage using a SAS credential - Linux - Azure AD'
3-
description: A tutorial that shows you how to use a Linux VM system-assigned managed identity to access Azure Storage, using a SAS credential instead of a storage account access key.
3+
description: Tutorial showing how to use a Linux VM system-assigned managed identity to access Azure Storage using a SAS credential instead of a storage account access key.
44
services: active-directory
55
documentationcenter: ''
66
author: barclayn
@@ -12,7 +12,7 @@ ms.subservice: msi
1212
ms.topic: tutorial
1313
ms.tgt_pltfrm: na
1414
ms.workload: identity
15-
ms.date: 01/11/2022
15+
ms.date: 02/17/2022
1616
ms.author: barclayn
1717
ms.collection: M365-identity-device-management
1818
---
@@ -27,7 +27,7 @@ This tutorial shows you how to use a system-assigned managed identity for a Linu
2727
> [!NOTE]
2828
> The SAS key generated in this tutorial will not be restricted/bound to the VM.
2929
30-
A Service SAS provides the ability to grant limited access to objects in a storage account, for a limited time and a specific service (in our case, the blob service), without exposing an account access key. You can use a SAS credential as usual when doing storage operations, for example when using the Storage SDK. For this tutorial, we demonstrate uploading and downloading a blob using Azure Storage CLI. You will learn how to:
30+
A Service SAS grants limited access to objects in a storage account without exposing an account access key. Access can be granted for a limited time and a specific service. You can use a SAS credential as usual when doing storage operations, for example when using the Storage SDK. For this tutorial, we demonstrate uploading and downloading a blob using Azure Storage CLI. You'll learn how to:
3131

3232

3333
> [!div class="checklist"]
@@ -42,31 +42,31 @@ A Service SAS provides the ability to grant limited access to objects in a stora
4242

4343
## Create a storage account
4444

45-
If you don't already have one, you will now create a storage account. You can also skip this step and grant your VM system-assigned managed identity access to the keys of an existing storage account.
45+
If you don't already have one, you'll now create a storage account. You can also skip this step and grant your VM system-assigned managed identity access to the keys of an existing storage account.
4646

47-
1. Click the **+/Create new service** button found on the upper left-hand corner of the Azure portal.
48-
2. Click **Storage**, then **Storage Account**, and a new "Create storage account" panel will display.
49-
3. Enter a **Name** for the storage account, which you will use later.
47+
1. Select the **+/Create new service** button found on the upper left-hand corner of the Azure portal.
48+
2. Select **Storage**, then **Storage Account**, and a new "Create storage account" panel will display.
49+
3. Enter a **Name** for the storage account, which you'll use later.
5050
4. **Deployment model** and **Account kind** should be set to "Resource Manager" and "General purpose", respectively.
5151
5. Ensure the **Subscription** and **Resource Group** match the ones you specified when you created your VM in the previous step.
52-
6. Click **Create**.
52+
6. Select **Create**.
5353

5454
![Create new storage account](./media/msi-tutorial-linux-vm-access-storage/msi-storage-create.png)
5555

5656
## Create a blob container in the storage account
5757

58-
Later we will upload and download a file to the new storage account. Because files require blob storage, we need to create a blob container in which to store the file.
58+
Later we'll upload and download a file to the new storage account. Because files require blob storage, we need to create a blob container in which to store the file.
5959

6060
1. Navigate back to your newly created storage account.
61-
2. Click the **Containers** link in the left panel, under "Blob service."
62-
3. Click **+ Container** on the top of the page, and a "New container" panel slides out.
63-
4. Give the container a name, select an access level, then click **OK**. The name you specified will be used later in the tutorial.
61+
2. Select the **Containers** link in the left panel, under "Blob service."
62+
3. Select **+ Container** on the top of the page, and a "New container" panel slides out.
63+
4. Give the container a name, select an access level, then select **OK**. The name you specified will be used later in the tutorial.
6464

6565
![Create storage container](./media/msi-tutorial-linux-vm-access-storage/create-blob-container.png)
6666

6767
## Grant your VM's system-assigned managed identity access to use a storage SAS
6868

69-
Azure Storage natively supports Azure AD authentication, so you can use your VM's system-assigned managed identity to retrieve a storage SAS from Resource Manager, then use the SAS to access storage. In this step, you grant your VM's system-assigned managed identity access to your storage account SAS. Grant access by assigning the [Storage Account Contributor](../../role-based-access-control/built-in-roles.md#storage-account-contributor) role to the managed-identity at the scope of the resource group that contains your storage account.
69+
Azure Storage natively supports Azure AD authentication, so you can use your VM's system-assigned managed identity to retrieve a storage SAS from Resource Manager, then use the SAS to access storage. In this step, you grant your VM's system-assigned managed identity access to your storage account SAS. Assign the [Storage Account Contributor](../../role-based-access-control/built-in-roles.md#storage-account-contributor) role to the managed-identity at the scope of the resource group that contains your storage account.
7070

7171
For detailed steps, see [Assign Azure roles using the Azure portal](../../role-based-access-control/role-assignments-portal.md).
7272

@@ -76,13 +76,18 @@ For detailed steps, see [Assign Azure roles using the Azure portal](../../role-b
7676

7777
## Get an access token using the VM's identity and use it to call Azure Resource Manager
7878

79-
For the remainder of the tutorial, we will work from the VM we created earlier.
79+
For the remainder of the tutorial, we'll work from the VM we created earlier.
8080

81-
To complete these steps, you will need an SSH client. If you are using Windows, you can use the SSH client in the [Windows Subsystem for Linux](/windows/wsl/install-win10). If you need assistance configuring your SSH client's keys, see [How to Use SSH keys with Windows on Azure](../../virtual-machines/linux/ssh-from-windows.md), or [How to create and use an SSH public and private key pair for Linux VMs in Azure](../../virtual-machines/linux/mac-create-ssh-keys.md).
81+
You need an SSH client to complete these steps. If you're using Windows, you can use the SSH client in the [Windows Subsystem for Linux](/windows/wsl/install-win10). If you need assistance configuring your SSH client's keys, see:
8282

83-
1. In the Azure portal, navigate to **Virtual Machines**, go to your Linux virtual machine, then from the **Overview** page click **Connect** at the top. Copy the string to connect to your VM.
83+
- [How to Use SSH keys with Windows on Azure](../../virtual-machines/linux/ssh-from-windows.md)
84+
- [How to create and use an SSH public and private key pair for Linux VMs in Azure](../../virtual-machines/linux/mac-create-ssh-keys.md).
85+
86+
Now that you have your SSH client continue to the steps below:
87+
88+
1. In the Azure portal, navigate to **Virtual Machines**, go to your Linux virtual machine, then from the **Overview** page select **Connect** at the top. Copy the string to connect to your VM.
8489
2. Connect to your VM using your SSH client.
85-
3. Next, you will be prompted to enter in your **Password** you added when creating the **Linux VM**. You should then be successfully signed in.
90+
3. Next, you'll be prompted to enter in your **Password** you added when creating the **Linux VM**. You should then be successfully signed in.
8691
4. Use CURL to get an access token for Azure Resource Manager.
8792

8893
The CURL request and response for the access token is below:
@@ -109,7 +114,7 @@ To complete these steps, you will need an SSH client. If you are using Windows,
109114

110115
Now use CURL to call Resource Manager using the access token we retrieved in the previous section, to create a storage SAS credential. Once we have the SAS credential, we can call storage upload/download operations.
111116

112-
For this request we'll use the follow HTTP request parameters to create the SAS credential:
117+
For this request, we'll use the following HTTP request parameters to create the SAS credential:
113118
114119
```JSON
115120
{
@@ -138,13 +143,13 @@ The CURL response returns the SAS credential:
138143
{"serviceSasToken":"sv=2015-04-05&sr=c&spr=https&st=2017-09-22T00%3A10%3A00Z&se=2017-09-22T02%3A00%3A00Z&sp=rcw&sig=QcVwljccgWcNMbe9roAJbD8J5oEkYoq%2F0cUPlgriBn0%3D"}
139144
```
140145
141-
Create a sample blob file to upload to your blob storage container. On a Linux VM, you can do this with the following command.
146+
On a Linux VM, create a sample blob file to upload to your blob storage container using the following command:
142147
143148
```bash
144149
echo "This is a test file." > test.txt
145150
```
146151
147-
Next, authenticate with the CLI `az storage` command using the SAS credential, and upload the file to the blob container. For this step, you will need to [install the latest Azure CLI](/cli/azure/install-azure-cli) on your VM, if you haven't already.
152+
Next, authenticate with the CLI `az storage` command using the SAS credential, and upload the file to the blob container. For this step, you'll need to [install the latest Azure CLI](/cli/azure/install-azure-cli) on your VM, if you haven't already.
148153
149154
```azurecli
150155
az storage blob upload --container-name

0 commit comments

Comments
 (0)