Azure / Azure/azure-sdk-for-python

API to auto-enable extensions after provisioning a VM

Chiusa
#37,413 8 commenti 0 reazioni 3 assegnatari Assegnata a @tanmaygore Vedi su GitHub
Compute - VM customer-reported Mgmt needs-team-attention question Service Attention
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:

![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,
}
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.