Skip to content

Conversation

@bfoley13
Copy link
Member

@bfoley13 bfoley13 commented Feb 27, 2024

Related command
az aks

Description
The app routing add-on has migrated to the stable api for AKS. This PR adds the same features within the preview cli ti the az aks cli.

This adds a flag to cluster create for enabling the addon:
az aks create ... --enable-app-routing

This also adds the approuting sub command to az aks:
az aks approuting [enable|disable|update]

And the zone sub command to the approuting command:
az aks approuting zone [add|delete|update|list]

Testing Guide

# Create a keyvault
az keyvault create --resource-group={resource_group} --location={location} --name={kv_name} --enable-rbac-authorization=false

# Create new AKS cluster enabling the app routing addon
aks create --resource-group={resource_group} --name={aks_name} --location={location}  --ssh-key-value={ssh_key_value} --enable-app-routing

# Use the approuting update command to link the keyvault
aks approuting update --resource-group={resource_group} --name={aks_name} --enable-kv --attach-kv {keyvault_id}

# Create a DNS Zone
network dns zone create --resource-group={resource_group} --name {dns_zone_1}

# Use the approuting zone command to add dns zone
aks approuting zone add --resource-group={resource_group} --name={aks_name} --ids {dns_zone_id_1} --attach-zones

History Notes

[ACS] az aks create: Add flag --enable-app-routing to enable app routing
[ACS] az aks approuting: Add command group to handle enable|disable|update of the approuting addon
[ACS] az aks approuting zone: Add command group to handle add|delete|update|list actions of dns zone resources associated to the approuting addon


This checklist is used to make sure that common guidelines for a pull request are followed.

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Feb 27, 2024

️✔️AzureCLI-FullTest
️✔️acr
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️acs
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️advisor
️✔️latest
️✔️3.11
️✔️3.9
️✔️ams
️✔️latest
️✔️3.11
️✔️3.9
️✔️apim
️✔️latest
️✔️3.11
️✔️3.9
️✔️appconfig
️✔️latest
️✔️3.11
️✔️3.9
️✔️appservice
️✔️latest
️✔️3.11
️✔️3.9
️✔️aro
️✔️latest
️✔️3.11
️✔️3.9
️✔️backup
️✔️latest
️✔️3.11
️✔️3.9
️✔️batch
️✔️latest
️✔️3.11
️✔️3.9
️✔️batchai
️✔️latest
️✔️3.11
️✔️3.9
️✔️billing
️✔️latest
️✔️3.11
️✔️3.9
️✔️botservice
️✔️latest
️✔️3.11
️✔️3.9
️✔️cdn
️✔️latest
️✔️3.11
️✔️3.9
️✔️cloud
️✔️latest
️✔️3.11
️✔️3.9
️✔️cognitiveservices
️✔️latest
️✔️3.11
️✔️3.9
️✔️config
️✔️latest
️✔️3.11
️✔️3.9
️✔️configure
️✔️latest
️✔️3.11
️✔️3.9
️✔️consumption
️✔️latest
️✔️3.11
️✔️3.9
️✔️container
️✔️latest
️✔️3.11
️✔️3.9
️✔️containerapp
️✔️latest
️✔️3.11
️✔️3.9
️✔️core
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️cosmosdb
️✔️latest
️✔️3.11
️✔️3.9
️✔️databoxedge
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️dla
️✔️latest
️✔️3.11
️✔️3.9
️✔️dls
️✔️latest
️✔️3.11
️✔️3.9
️✔️dms
️✔️latest
️✔️3.11
️✔️3.9
️✔️eventgrid
️✔️latest
️✔️3.11
️✔️3.9
️✔️eventhubs
️✔️latest
️✔️3.11
️✔️3.9
️✔️feedback
️✔️latest
️✔️3.11
️✔️3.9
️✔️find
️✔️latest
️✔️3.11
️✔️3.9
️✔️hdinsight
️✔️latest
️✔️3.11
️✔️3.9
️✔️identity
️✔️latest
️✔️3.11
️✔️3.9
️✔️iot
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️keyvault
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️kusto
️✔️latest
️✔️3.11
️✔️3.9
️✔️lab
️✔️latest
️✔️3.11
️✔️3.9
️✔️managedservices
️✔️latest
️✔️3.11
️✔️3.9
️✔️maps
️✔️latest
️✔️3.11
️✔️3.9
️✔️marketplaceordering
️✔️latest
️✔️3.11
️✔️3.9
️✔️monitor
️✔️latest
️✔️3.11
️✔️3.9
️✔️mysql
️✔️latest
️✔️3.11
️✔️3.9
️✔️netappfiles
️✔️latest
️✔️3.11
️✔️3.9
️✔️network
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️policyinsights
️✔️latest
️✔️3.11
️✔️3.9
️✔️privatedns
️✔️latest
️✔️3.11
️✔️3.9
️✔️profile
️✔️latest
️✔️3.11
️✔️3.9
️✔️rdbms
️✔️latest
️✔️3.11
️✔️3.9
️✔️redis
️✔️latest
️✔️3.11
️✔️3.9
️✔️relay
️✔️latest
️✔️3.11
️✔️3.9
️✔️resource
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️role
️✔️latest
️✔️3.11
️✔️3.9
️✔️search
️✔️latest
️✔️3.11
️✔️3.9
️✔️security
️✔️latest
️✔️3.11
️✔️3.9
️✔️servicebus
️✔️latest
️✔️3.11
️✔️3.9
️✔️serviceconnector
️✔️latest
️✔️3.11
️✔️3.9
️✔️servicefabric
️✔️latest
️✔️3.11
️✔️3.9
️✔️signalr
️✔️latest
️✔️3.11
️✔️3.9
️✔️sql
️✔️latest
️✔️3.11
️✔️3.9
️✔️sqlvm
️✔️latest
️✔️3.11
️✔️3.9
️✔️storage
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️synapse
️✔️latest
️✔️3.11
️✔️3.9
️✔️telemetry
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️util
️✔️latest
️✔️3.11
️✔️3.9
️✔️vm
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9

@azure-client-tools-bot-prd
Copy link

Hi @bfoley13,
Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Feb 27, 2024

⚠️AzureCLI-BreakingChangeTest
⚠️acs
rule cmd_name rule_message suggest_message
⚠️ 1011 - SubgroupAdd aks approuting sub group aks approuting added
⚠️ 1006 - ParaAdd aks create cmd aks create added parameter enable_app_routing

@yonzhan
Copy link
Collaborator

yonzhan commented Feb 27, 2024

ACS

Copy link
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix failed CI checks.

This PR moves the implementation in aks-preview to official azure-cli

Copy link
Member

@FumingZhang FumingZhang Feb 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Queued live test to validate the change.

  • test_aks_create_with_app_routing_enabled
  • test_aks_approuting_enable_disable
  • test_aks_approuting_enable_with_keyvault_secrets_provider_addon_and_keyvault_id
  • test_aks_approuting_update
  • test_aks_approuting_update_with_monitoring_addon_enabled
  • test_aks_approuting_zone_add_delete_list
  • test_aks_approuting_zone_update

Copy link
Member Author

@bfoley13 bfoley13 Feb 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bfoley13 bfoley13 force-pushed the dev branch 2 times, most recently from eee0452 to d485908 Compare February 27, 2024 15:32
@bfoley13 bfoley13 changed the title [ACS] az aks approuting: handling approuting enable|disable|keyvault as well as dns zone add|remove|list [ACS] az aks approuting: updating commands for approuting enable|disable|keyvault as well as dns zone add|remove|list Feb 27, 2024
@bfoley13 bfoley13 changed the title [ACS] az aks approuting: updating commands for approuting enable|disable|keyvault as well as dns zone add|remove|list [ACS] az aks approuting: Creating commands for approuting enable|disable|keyvault as well as dns zone add|remove|list Feb 27, 2024
@FumingZhang
Copy link
Member

Full test CI failed due to the recording of test_aks_approuting_enable_with_keyvault_secrets_provider_addon_and_keyvault_id is not valid, reran the test, may find the recording file from pipeline artifact and commit the new one.

@FumingZhang
Copy link
Member

/azp run

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 28463 in repo Azure/azure-cli

@wangzelin007
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also resolve merge conflict

bfoley13 added 6 commits March 1, 2024 11:19
* Adding App Routing Support to acs

* small updates

* latest updates

* KV changes

* Moving kv handling to update decorator

* update live tests
Copy link
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yanzhudd
Copy link
Contributor

yanzhudd commented Mar 7, 2024

Since it seems to have mutiply changes in this PR, it is better to split the changelog into several small items and add them in the History Notes part in the above description.
image

@yanzhudd yanzhudd changed the title [ACS] az aks approuting: Creating commands for approuting enable|disable|keyvault as well as dns zone add|remove|list {ACS} az aks approuting: Creating commands for approuting enable|disable|keyvault as well as dns zone add|remove|list Mar 8, 2024
@yanzhudd yanzhudd merged commit 7dbe9a6 into Azure:dev Mar 8, 2024
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 KeyVault az keyvault

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants