Azure / azure-cli

Azure Command-Line Interface
MIT License
3.97k stars 2.95k forks source link

Unable to export AKS nodepool #25636

Open rguptar opened 1 year ago

rguptar commented 1 year ago

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Related command works: az group export --name $RG --resource-ids /subscriptions/$SUB/resourcegroups/$RG/providers/Microsoft.ContainerService/managedClusters/$CLUSTER

does not work: az group export --name $RG --resource-ids /subscriptions/$SUB/resourcegroups/$RG/providers/Microsoft.ContainerService/managedClusters/$CLUSTER/agentPools/$POOL

Describe the bug az group export works for the AKS cluster but fails for the agent pool. It returns an empty ARM template

{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {},
  "resources": [],
  "variables": {}
}

To Reproduce See above

Expected behavior az group export shows the config for a single nodepool.

Environment summary xplat

Additional context n/a

yonzhan commented 1 year ago

@zhoxing-ms for awareness

zhoxing-ms commented 1 year ago

In fact, export AKS node pool needs the support of REST service resource-groups/export-template, so it needs the help from service team.

ghost commented 1 year ago

Thank you for your feedback. This has been routed to the support team for assistance.

ghost commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @josephkwchan, @jennyhunter-msft.

Issue Details
> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62 **Related command** works: az group export --name $RG --resource-ids /subscriptions/$SUB/resourcegroups/$RG/providers/Microsoft.ContainerService/managedClusters/$CLUSTER does not work: az group export --name $RG --resource-ids /subscriptions/$SUB/resourcegroups/$RG/providers/Microsoft.ContainerService/managedClusters/$CLUSTER/agentPools/$POOL **Describe the bug** `az group export` works for the AKS cluster but fails for the agent pool. It returns an empty ARM template ``` { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": {}, "resources": [], "variables": {} } ``` **To Reproduce** See above **Expected behavior** `az group export` shows the config for a single nodepool. **Environment summary** xplat **Additional context** n/a
Author: rguptar
Assignees: zhoxing-ms
Labels: `Service Attention`, `question`, `ARM`, `needs-team-attention`, `feature-request`, `Auto-Assign`, `Azure CLI Team`
Milestone: Backlog
navba-MSFT commented 1 year ago

Non customer-reported issue. So adding Service team to look into this.

@josephkwchan, @jennyhunter-msft. Could you please look into this once you get a chance ? Thanks in advance.

ghost commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @satyavel, @apclouds.

Issue Details
> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62 **Related command** works: az group export --name $RG --resource-ids /subscriptions/$SUB/resourcegroups/$RG/providers/Microsoft.ContainerService/managedClusters/$CLUSTER does not work: az group export --name $RG --resource-ids /subscriptions/$SUB/resourcegroups/$RG/providers/Microsoft.ContainerService/managedClusters/$CLUSTER/agentPools/$POOL **Describe the bug** `az group export` works for the AKS cluster but fails for the agent pool. It returns an empty ARM template ``` { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": {}, "resources": [], "variables": {} } ``` **To Reproduce** See above **Expected behavior** `az group export` shows the config for a single nodepool. **Environment summary** xplat **Additional context** n/a
Author: rguptar
Assignees: zhoxing-ms
Labels: `Service Attention`, `question`, `ARM - Templates`, `needs-team-attention`, `feature-request`, `Auto-Assign`, `Azure CLI Team`
Milestone: Backlog
rguptar commented 1 year ago

@jennyhunter-msft, @josephkwchan, are there any updates on this?

jennyhunter-msft commented 1 year ago

@satyavel, @apclouds - who have more context for deployments and export logic

rguptar commented 1 year ago

@satyavel @apclouds, are there any updates on this?