Skip to content

API to auto-enable extensions after provisioning a VM #37413

@lovettchris

Description

@lovettchris

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

and for Windows VM's

image

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:

          "linuxConfiguration": {
            "patchSettings": {
              "patchMode": "ImageDefault",
              "assessmentMode": "AutomaticByPlatform"
            },
            "disablePasswordAuthentication": false,
            "provisionVMAgent": true,
            "enableVMAgentPlatformUpdates": true
          }

and windows:

          "windowsConfiguration": {
            "enableAutomaticUpdates": true,
            "provisionVmAgent": true,
            "patchSettings": {
              "enableHotpatching": "[variables('enableHotpatching')]",
              "patchMode": "[variables('patchMode')]"
            },
            "enableVMAgentPlatformUpdates": true,
          }

Metadata

Metadata

Labels

Compute - VMMgmtThis issue is related to a management-plane library.Service AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions