Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az aks update fails due to ERROR: (LinkedInvalidPropertyId) Property id '' at path 'properties.addonProfiles.omsagent.config.LogAnalyticsWorkspaceResourceID' is invalid. #29210

Open
wasker opened this issue Jun 19, 2024 · 6 comments
Labels
AKS az aks/acs/openshift Auto-Assign Auto assign by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team.

Comments

@wasker
Copy link

wasker commented Jun 19, 2024

Describe the bug

Whenever az aks update runs, it fails with an error

ERROR: (LinkedInvalidPropertyId) Property id '' at path 'properties.addonProfiles.omsagent.config.LogAnalyticsWorkspaceResourceID' is invalid. Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'. Code: LinkedInvalidPropertyId Message: Property id '' at path 'properties.addonProfiles.omsagent.config.LogAnalyticsWorkspaceResourceID' is invalid. Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'.

Related command

az aks update

Errors

ERROR: (LinkedInvalidPropertyId) Property id '' at path 'properties.addonProfiles.omsagent.config.LogAnalyticsWorkspaceResourceID' is invalid. Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'. Code: LinkedInvalidPropertyId Message: Property id '' at path 'properties.addonProfiles.omsagent.config.LogAnalyticsWorkspaceResourceID' is invalid. Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'.

Issue script & Debug output

$ az aks show -n cluster-name -g rg-name

{
  "aadProfile": null,
  "addonProfiles": {
    "omsagent": {
      "config": {
        "LogAnalyticsWorkspaceResourceID": "",
        "useAADAuth": "true"
      },
      "enabled": false,
      "identity": null
    }
  }
...
}

I don't know when exactly this started, but we were running same clusters for years already in the same configuration and this was never an issue. The monitoring addon was never enabled on these clusters. Now we have a bunch of clusters where update operation fails randomly.

Expected behavior

Do not fail update configuration with disabled addon config.

Environment Summary

"azure-cli": "2.61.0",

"azure-cli-core": "2.61.0",

"azure-cli-telemetry": "1.1.0",

"ai-examples": "0.2.5",

"aks-preview": "5.0.0b1",

"front-door": "1.0.17",

"ml": "2.26.1",

"resource-graph": "2.1.0",

"ssh": "2.0.3"

Additional context

No response

@wasker wasker added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jun 19, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. AKS az aks/acs/openshift Service Attention This issue is responsible by Azure service team. Auto-Assign Auto assign by bot labels Jun 19, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Jun 19, 2024

Thank you for opening this issue, we will look into it.

@frederikspang
Copy link

Also occurs for us, on updating K8s version from 1.28 to 1.29 in azure portal.

@DFAutomotive
Copy link

Got the same Problem here when trying to update from 1.27.3 to any version. Monitoring addon was never enabled on our cluster.

@chuchynz
Copy link

Got the same Problem here when trying to update from 1.27.3 to any version. Monitoring addon was never enabled on our cluster.

Did you try disabling monitoring az aks disable-addons -a monitoring -n MyExistingManagedCluster -g MyExistingManagedClusterRG before upgrading? This worked for me even though we were confident we had not enabled this addon before.

@DFAutomotive
Copy link

Got the same Problem here when trying to update from 1.27.3 to any version. Monitoring addon was never enabled on our cluster.

Did you try disabling monitoring az aks disable-addons -a monitoring -n MyExistingManagedCluster -g MyExistingManagedClusterRG before upgrading? This worked for me even though we were confident we had not enabled this addon before.

Amazing, this worked! Thank you so much :)

@wasker
Copy link
Author

wasker commented Jun 21, 2024

Got the same Problem here when trying to update from 1.27.3 to any version. Monitoring addon was never enabled on our cluster.

Did you try disabling monitoring az aks disable-addons -a monitoring -n MyExistingManagedCluster -g MyExistingManagedClusterRG before upgrading? This worked for me even though we were confident we had not enabled this addon before.

I'm aware of this workaround, but we have 10+ clusters and rely on automation to manage them. Each failure like this means we have to have a manual intervention to unblock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AKS az aks/acs/openshift Auto-Assign Auto assign by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

5 participants