Azure / Azure/azure-sdk-for-python
API to auto-enable extensions after provisioning a VM
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 3.4k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 193
Description
**Is your feature request related to a problem? Please describe.**
I'm not sure why but when I create a VM from my ARM template the OmsAgentForLinux (and the AzurePolicyforWindows on windows VM's) come up disabled and then I have to go to the portal to enable it manually clicking this:

and for Windows VM's

**Describe the solution you'd like**
Is there an python API I can use to do this?
**Describe alternatives you've considered**
Manual is tedius.
**Additional context**
This is my Linux OS configuration:
```json
"linuxConfiguration": {
"patchSettings": {
"patchMode": "ImageDefault",
"assessmentMode": "AutomaticByPlatform"
},
"disablePasswordAuthentication": false,
"provisionVMAgent": true,
"enableVMAgentPlatformUpdates": true
}
```
and windows:
```json
"windowsConfiguration": {
"enableAutomaticUpdates": true,
"provisionVmAgent": true,
"patchSettings": {
"enableHotpatching": "[variables('enableHotpatching')]",
"patchMode": "[variables('patchMode')]"
},
"enableVMAgentPlatformUpdates": true,
}
```
Contributor guide
Assessment
This issue has not been assessed yet.