You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

在Azure AKS创建托管Kubernetes集群时遇"Incorrect padding"错误

Fixing "Incorrect padding" Error When Creating AKS Cluster in Windows PowerShell

I’ve run into this exact "Incorrect padding" error a few times when working with Azure CLI in PowerShell, so let’s walk through the most likely fixes to get your AKS cluster up and running:

  • Clear and re-authenticate your Azure CLI session
    More often than not, this error stems from corrupted cached credentials or authentication tokens. Reset your session with these commands:

    az account clear
    az login
    

    After logging back in with your Azure credentials, retry the az aks create command. This replaces any damaged tokens with fresh, valid ones.

  • Update Azure CLI to the latest version
    Outdated CLI versions can have compatibility quirks with PowerShell’s environment. Bring it up to date using:

    az upgrade
    

    Follow the prompts to finish the upgrade, then restart PowerShell before trying to create the cluster again.

  • Check for proxy or network interference
    If you’re on a corporate network with a proxy, it can sometimes mangle authentication data. Verify your Azure CLI proxy settings with az configure --list to ensure they’re correctly set. If possible, temporarily disable the proxy (if allowed) to test if that resolves the padding error.

  • Double-check resource group validity
    Even though you can see the resource group in the Azure portal, confirm it’s properly recognized by the CLI with:

    az group list --query "[?name=='cb_aks_spike']"
    

    If the resource group details appear, the name isn’t the issue—skip ahead to the other fixes.

After trying these steps, your az aks create --resource-group cb_aks_spike --name cbakscluster command should execute without the padding error.

内容的提问来源于stack exchange,提问作者Matthew Groves

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 06:46:01