Azure / WALinuxAgent

Microsoft Azure Linux Guest Agent
http://azure.microsoft.com/
Apache License 2.0
537 stars 373 forks source link

Fix failing multi config scenario #3145

Closed maddieford closed 3 months ago

maddieford commented 3 months ago

Description

The multi config scenario is failing at delete operation: azure.core.exceptions.ResourceExistsError: (OperationNotAllowed) Operation 'Delete VM Extension' is not allowed on VM Extension 'MCExt1' as it is installed and managed by Compute Resource Provider. Code: OperationNotAllowed Message: Operation 'Delete VM Extension' is not allowed on VM Extension 'MCExt1' as it is installed and managed by Compute Resource Provider.

RunCommandHandler is an implicit extension, which cannot be managed by regular extension api. After talking with Vivek, the virtual machine run command api is the correct api to use for runcommand operations. This PR adds a runcommand client for these operations.

Issue #


PR information

Quality of Code and Contribution Guidelines