Skip to content

Commit 3867200

Browse files
committed
fixing vm-access-storage
1 parent 38205c2 commit 3867200

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.subservice: msi
1313
ms.topic: tutorial
1414
ms.tgt_pltfrm: na
1515
ms.workload: identity
16-
ms.date: 01/11/2022
16+
ms.date: 02/18/2022
1717
ms.author: barclayn
1818
ms.collection: M365-identity-device-management
1919
---
@@ -51,12 +51,12 @@ This tutorial shows you how to use a system-assigned managed identity for a Wind
5151

5252
In this section, you create a storage account.
5353

54-
1. Click the **+ Create a resource** button found on the upper left-hand corner of the Azure portal.
55-
2. Click **Storage**, then **Storage account - blob, file, table, queue**.
54+
1. Select the **+ Create a resource** button found on the upper left-hand corner of the Azure portal.
55+
2. Select **Storage**, then **Storage account - blob, file, table, queue**.
5656
3. Under **Name**, enter a name for the storage account.
5757
4. **Deployment model** and **Account kind** should be set to **Resource manager** and **Storage (general purpose v1)**.
5858
5. Ensure the **Subscription** and **Resource Group** match the ones you specified when you created your VM in the previous step.
59-
6. Click **Create**.
59+
6. Select **Create**.
6060

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

@@ -65,24 +65,24 @@ In this section, you create a storage account.
6565
Files require blob storage so you need to create a blob container in which to store the file. You then upload a file to the blob container in the new storage account.
6666

6767
1. Navigate back to your newly created storage account.
68-
2. Under **Blob Service**, click **Containers**.
69-
3. Click **+ Container** on the top of the page.
70-
4. Under **New container**, enter a name for the container and under **Public access level** keep the default value .
68+
2. Under **Blob Service**, select **Containers**.
69+
3. Select **+ Container** on the top of the page.
70+
4. Under **New container**, enter a name for the container and under **Public access level** keep the default value.
7171

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

7474
5. Using an editor of your choice, create a file titled *hello world.txt* on your local machine. Open the file and add the text (without the quotes) "Hello world! :)" and then save it.
7575
6. Upload the file to the newly created container by clicking on the container name, then **Upload**
76-
7. In the **Upload blob** pane, under **Files**, click the folder icon and browse to the file **hello_world.txt** on your local machine, select the file, then click **Upload**.
76+
7. In the **Upload blob** pane, under **Files**, select the folder icon and browse to the file **hello_world.txt** on your local machine, select the file, then select **Upload**.
7777
![Upload text file](./media/msi-tutorial-linux-vm-access-storage/upload-text-file.png)
7878

7979
### Grant access
8080

8181
This section shows how to grant your VM access to an Azure Storage container. You can use the VM's system-assigned managed identity to retrieve the data in the Azure storage blob.
8282

8383
1. Navigate back to your newly created storage account.
84-
1. Click **Access control (IAM)**.
85-
1. Click **Add** > **Add role assignment** to open the Add role assignment page.
84+
1. Select **Access control (IAM)**.
85+
1. Select **Add** > **Add role assignment** to open the Add role assignment page.
8686
1. Assign the following role. For detailed steps, see [Assign Azure roles using the Azure portal](../../role-based-access-control/role-assignments-portal.md).
8787

8888
| Setting | Value |
@@ -96,9 +96,9 @@ This section shows how to grant your VM access to an Azure Storage container. Yo
9696

9797
## Access data 
9898

99-
Azure Storage natively supports Azure AD authentication, so it can directly accept access tokens obtained using a managed identity. This is part of Azure Storage's integration with Azure AD, and is different from supplying credentials on the connection string.
99+
Azure Storage natively supports Azure AD authentication, so it can directly accept access tokens obtained using a managed identity. This approach uses Azure Storage's integration with Azure AD, and is different from supplying credentials on the connection string.
100100

101-
Here's a .NET code example of opening a connection to Azure Storage using an access token and then reading the contents of the file you created earlier. This code must run on the VM to be able to access the VM's managed identity endpoint. .NET Framework 4.6 or higher is required to use the access token method. Replace the value of `<URI to blob file>` accordingly. You can obtain this value by navigating to file you created and uploaded to blob storage and copying the **URL** under **Properties** the **Overview** page.
101+
Here's a .NET code example of opening a connection to Azure Storage. The example uses an access token and then reads the contents of the file you created earlier. This code must run on the VM to be able to access the VM's managed identity endpoint. .NET Framework 4.6 or higher is required to use the access token method. Replace the value of `<URI to blob file>` accordingly. You can obtain this value by navigating to file you created and uploaded to blob storage and copying the **URL** under **Properties** the **Overview** page.
102102

103103
```csharp
104104
using System;
@@ -181,7 +181,7 @@ The response contains the contents of the file:
181181

182182
## Next steps
183183

184-
In this tutorial, you learned how enable a Windows VM's system-assigned identity to access Azure Storage. To learn more about Azure Storage see:
184+
In this tutorial, you learned how enable a Windows VM's system-assigned identity to access Azure Storage. To learn more about Azure Storage, see:
185185

186186
> [!div class="nextstepaction"]
187187
> [Azure Storage](../../storage/common/storage-introduction.md)

0 commit comments

Comments
 (0)