Azure / Azure/azure-sdk-for-python
API to auto-enable extensions after provisioning a VM
- Lingua principale
- Python
- Stelle
- 5.6k
- Fork
- 3.4k
- Merge medio
- 2g 2h
- PR unite (30g)
- 213
Descrizione
**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,
}
```
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.