You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory/managed-identities-azure-resources/tutorial-linux-vm-access-storage.md
+22-8Lines changed: 22 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ ms.subservice: msi
12
12
ms.topic: tutorial
13
13
ms.tgt_pltfrm: na
14
14
ms.workload: identity
15
-
ms.date: 01/11/2022
15
+
ms.date: 03/30/2023
16
16
ms.author: barclayn
17
17
18
18
ms.collection: M365-identity-device-management
@@ -42,12 +42,12 @@ To run the CLI script examples in this tutorial, you have two options:
42
42
43
43
In this section, you create a storage account.
44
44
45
-
1.Click the **+ Create a resource** button found on the upper left-hand corner of the Azure portal.
46
-
2.Click**Storage**, then **Storage account - blob, file, table, queue**.
45
+
1.Select the **+ Create a resource** button found on the upper left-hand corner of the Azure portal.
46
+
2.Select**Storage**, then **Storage account - blob, file, table, queue**.
47
47
3. Under **Name**, enter a name for the storage account.
48
48
4.**Deployment model** and **Account kind** should be set to **Resource manager** and **Storage (general purpose v1)**.
49
49
5. Ensure the **Subscription** and **Resource Group** match the ones you specified when you created your VM in the previous step.
50
-
6.Click**Create**.
50
+
6.Select**Create**.
51
51
52
52

53
53
@@ -56,16 +56,16 @@ In this section, you create a storage account.
56
56
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.
57
57
58
58
1. Navigate back to your newly created storage account.
59
-
2. Under **Blob Service**, click**Containers**.
60
-
3.Click**+ Container** on the top of the page.
59
+
2. Under **Blob Service**, select**Containers**.
60
+
3.Select**+ Container** on the top of the page.
61
61
4. Under **New container**, enter a name for the container and under **Public access level** keep the default value.
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.
66
66
67
67
6. Upload the file to the newly created container by clicking on the container name, then **Upload**
68
-
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**.
68
+
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**.
69
69
70
70

71
71
@@ -83,7 +83,7 @@ Azure Storage natively supports Azure AD authentication, so it can directly acce
83
83
84
84
To complete the following steps, you need to work from the VM created earlier and you need an SSH client to connect to it. If you are using Windows, you can use the SSH client in the [Windows Subsystem for Linux](/windows/wsl/about). If you need assistance configuring your SSH client's keys, see [How to Use SSH keys with Windows on Azure](~/articles/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](~/articles/virtual-machines/linux/mac-create-ssh-keys.md).
85
85
86
-
1. In the Azure portal, navigate to **Virtual Machines**, go to your Linux virtual machine, then from the **Overview** page click**Connect**. Copy the string to connect to your VM.
86
+
1. In the Azure portal, navigate to **Virtual Machines**, go to your Linux virtual machine, then from the **Overview** page select**Connect**. Copy the string to connect to your VM.
87
87
2.**Connect** to the VM with the SSH client of your choice.
88
88
3. In the terminal window, use CURL to make a request to the local Managed Identity endpoint to get an access token for Azure Storage.
89
89
@@ -102,6 +102,20 @@ To complete the following steps, you need to work from the VM created earlier an
102
102
Hello world! :)
103
103
```
104
104
105
+
Alternatively, you could also store the token in a variable and pass it to the second command as shown:
106
+
107
+
```bash
108
+
# Run the first curl command and capture its output in a variable
0 commit comments