Description
The enableAutomaticUpgrade
property on Azure arc machine extensions have three possible values:
True
False
Null
This is based on the information provided for that type: IMachineExtension.EnableAutomaticUpgrade
.
My assumption is that "Null
" is a representation of "Not Supported" state in Azure portal.
Issue
While working with Get-AzConnectedMachineExtension
cmdlet, I noticed that the enableAutomaticUpgrade
property returns True
when the value for this property in Azure portal is "Not Supported". Needless to say, that is inaccurate, and a Null
would of have been more appropriate or similar representation.
The issue might be coming from the True
being the default value for the property. But that should only be the case if the extension supports automatic upgrade in the first place. There is should be a return to indicate "Not Supported" (Null
for example)
Example
An extension example would be Microsoft.Azure.AzureDefenderForServers.MDE.Windows
extension.
I initially an issue in GitHub here as well but StackOverflow was always good to me :) .
Ask
- I would appreciate if someone can confirm in fact there is an issue with cmdlet as I described it.
- If there is any possible way in PowerShell to know the state of an Azure Arc extension when it's "Not Supported" (assuming there isn't an issue in # 1 above and I am just not doing it right)