Azure / Azure/azure-sdk-for-python

API to auto-enable extensions after provisioning a VM

Geschlossen
#37,413 8 Kommentare 0 Reaktionen 3 zugewiesene Personen Zugewiesen an @tanmaygore Auf GitHub ansehen
Compute - VM customer-reported Mgmt needs-team-attention question Service Attention
Vorherrschende Sprache
Python
Sterne
5.6k
Forks
3.4k
Ø Merge
2 T. 2 Std.
Gemergte PRs (30 T.)
213

Beschreibung

**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,
}
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.