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

[BUG] Cannot complete instructions for setting up Web Application Routing add-on #3743

Closed
sam-huang1223 opened this issue Jun 26, 2023 · 7 comments

Comments

@sam-huang1223
Copy link

Describe the bug
In https://learn.microsoft.com/en-us/azure/aks/web-app-routing?tabs=without-osm, it asks us to run MANAGEDIDENTITY_OBJECTID=$(az aks show -g ${RGNAME} -n ${CLUSTERNAME} --query ingressProfile.webAppRouting.identity.objectId -o tsv) after enabling the add-on for an existing cluster. However, this returns null and further inspection of the ingressProfile field reveals that this identity block doesn't seem to exist. Perhaps this commands need to be updated?

To Reproduce

  1. az aks enable-addons -g snorkel-flow-rg -n snorkel-flow-cluster --addons azure-keyvault-secrets-provider,web_application_routing --enable-secret-rotation
  2. MANAGEDIDENTITY_OBJECTID=$(az aks show -g ${RGNAME} -n ${CLUSTERNAME} --query ingressProfile.webAppRouting.identity.objectId -o tsv)

Expected behavior
ManagedIdentity field is populated (this worked about a year ago when I first attempted experimenting with the web app routing add-on)

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • latest az, latest AKS cluster version, ubuntu 20.04

Additional context
If web app routing doesn't work for us, Snorkel will need to migrate to using application gateway for our azure deployments which may not be ideal.

@PixelRobots
Copy link
Collaborator

Hello @sam-huang1223

I have just tested this on one of my clusters and I am retrieving the Managed Identity Object ID as expected. I tested this on using the cloud shell.

image

can you please check again and let me know.

@bscholtes1A
Copy link

Describe the bug In https://learn.microsoft.com/en-us/azure/aks/web-app-routing?tabs=without-osm, it asks us to run MANAGEDIDENTITY_OBJECTID=$(az aks show -g ${RGNAME} -n ${CLUSTERNAME} --query ingressProfile.webAppRouting.identity.objectId -o tsv) after enabling the add-on for an existing cluster. However, this returns null and further inspection of the ingressProfile field reveals that this identity block doesn't seem to exist. Perhaps this commands need to be updated?

To Reproduce

  1. az aks enable-addons -g snorkel-flow-rg -n snorkel-flow-cluster --addons azure-keyvault-secrets-provider,web_application_routing --enable-secret-rotation
  2. MANAGEDIDENTITY_OBJECTID=$(az aks show -g ${RGNAME} -n ${CLUSTERNAME} --query ingressProfile.webAppRouting.identity.objectId -o tsv)

Expected behavior ManagedIdentity field is populated (this worked about a year ago when I first attempted experimenting with the web app routing add-on)

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • latest az, latest AKS cluster version, ubuntu 20.04

Additional context If web app routing doesn't work for us, Snorkel will need to migrate to using application gateway for our azure deployments which may not be ideal.

Same problem on my side. I had to create a brand new AKS.

@PixelRobots
Copy link
Collaborator

Can you confirm if you are using the latest aks-preview extension?

@ghost ghost added the action-required label Aug 1, 2023
@ghost
Copy link

ghost commented Aug 6, 2023

Action required from @Azure/aks-pm

@ghost ghost added the Needs Attention 👋 Issues needs attention/assignee/owner label Aug 6, 2023
@sabbour
Copy link
Contributor

sabbour commented Aug 9, 2023

@sam-huang1223 can you run az version ?

The minimum versions should be:

  • Azure CLI version: 2.47.0
  • aks-preview Azure CLI extension: 0.5.137

These are the versions that are working for me:

 az version
{
  "azure-cli": "2.51.0",
  "azure-cli-core": "2.51.0",
  "azure-cli-telemetry": "1.1.0",
  "extensions": {
    "aks-preview": "0.5.150"
  }
}

@sabbour sabbour added Needs Author Feedback and removed Needs Attention 👋 Issues needs attention/assignee/owner labels Aug 9, 2023
@sabbour sabbour self-assigned this Sep 1, 2023
@sabbour
Copy link
Contributor

sabbour commented Sep 1, 2023

@sam-huang1223 are you still having this issue with the latest AZ CLI version?

@microsoft-github-policy-service microsoft-github-policy-service bot added the stale Stale issue label Feb 2, 2024
Copy link
Contributor

This issue will now be closed because it hasn't had any activity for 7 days after stale. sam-huang1223 feel free to comment again on the next 7 days to reopen or open a new issue after that time if you still have a question/issue or suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants