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/virtual-machines/user-data.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ User data allows you to pass your own scripts or metadata to your virtual machin
17
17
18
18
## What is "user data"
19
19
20
-
User data is a set of scripts or other metadata, that will be inserted to an Azure virtual machine at provision time. Any application on the virtual machine can access the user data from the Azure Instance Metadata Service (IMDS) after provision.
20
+
User data is a set of scripts or other metadatathat's inserted to an Azure virtual machine at provision time. Any application on the virtual machine can access the user data from the Azure Instance Metadata Service (IMDS) after provision.
21
21
22
22
User data is a new version of [custom data](./custom-data.md) and it offers added benefits:
23
23
@@ -29,21 +29,21 @@ User data is a new version of [custom data](./custom-data.md) and it offers add
29
29
30
30
* User data can be queried via GET VM/VMSS API with $expand option.
31
31
32
-
In addition, if user data is not added at provision time, you can still add it after provision.
32
+
In addition, if user data isn't added at provision time, you can still add it after provision.
33
33
34
34
**Security warning**
35
35
36
36
> [!WARNING]
37
37
> User data will not be encrypted, and any process on the VM can query this data. You should not store confidential information in user data.
38
38
39
-
Make sure you get the latest Azure Resource Manager API to use the new user data features. The contents should be base64 encoded before passed to the API. The size cannot exceed 64 KB.
39
+
Make sure you get the latest Azure Resource Manager API to use the new user data features. The contents should be base64 encoded before passed to the API. The size can't exceed 64 KB.
40
40
41
41
## Create user data for Azure VM/VMSS
42
42
43
43
**Adding user data when creating new VM**
44
44
45
45
Use [this Azure Resource Manager template](https://aka.ms/ImdsUserDataArmTemplate) to create a new VM with user data.
46
-
If you are using rest API, for single VMs, add 'UserData' to the "properties" section with the PUT request to create the VM.
46
+
If you're using rest API, for single VMs, add 'UserData' to the "properties" section with the PUT request to create the VM.
47
47
48
48
```json
49
49
{
@@ -69,9 +69,9 @@ If you are using rest API, for single VMs, add 'UserData' to the "properties" se
69
69
}
70
70
```
71
71
72
-
**Adding user data when you create new virtual machine scale set**
72
+
**Adding user data when you create new Virtual Machine Scale Set**
73
73
74
-
Using rest API, add 'UserData' to the "virtualMachineProfile" section with the PUT request when creating the virtual machine scale set.
74
+
Using rest API, add 'UserData' to the "virtualMachineProfile" section with the PUT request when creating the Virtual Machine Scale Set.
` GET "/subscriptions/{guid}/resourceGroups/{RGName}/providers/Microsoft.Compute/virtualMachineScaleSets/{VMSSName}/virtualmachines/{vmss instance id}?$expand=userData" `
142
142
143
143
## Updating user data
144
144
145
-
With REST API, you can use a normal PUT or PATCH request to update the user data. The user data will be updated without the need to stop or reboot the VM.
145
+
With REST API, you can use a normal PUT or PATCH request to update the user data. The user data is updated without the need to stop or reboot the VM.
0 commit comments