Azure / Azure/azure-sdk-for-python

API to auto-enable extensions after provisioning a VM

Open
#37,413 8 comments 0 reactions 3 assignees Assigned to @tanmaygore View on GitHub
Compute - VM customer-reported Mgmt needs-team-attention question Service Attention
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:

![image](https://github.com/user-attachments/assets/bade315b-1d62-4f56-bee0-fba3961154fe)

and for Windows VM's

![image](https://github.com/user-attachments/assets/02f7e174-dce9-49b4-8296-c4b4d5e2580a)

**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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.