question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

aks pod identity tutorial cannot create the proper aks any help !

See original GitHub issue

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az aks create

Errors:

cannot import name 'edge_zone_type'
Traceback (most recent call last):
lib/python3.6/site-packages/knack/cli.py, ln 231, in invoke
    cmd_result = self.invocation.execute(args)
azure/cli/core/commands/__init__.py, ln 556, in execute
    self.commands_loader.load_arguments(command)
site-packages/azure/cli/core/__init__.py, ln 502, in load_arguments
    loader.load_arguments(command)  # this adds entries to the argument registries
.azure/cliextensions/aks-preview/azext_aks_preview/__init__.py, ln 47, in load_arguments
    from ._params import load_arguments
.azure/cliextensions/aks-preview/azext_aks_preview/_params.py, ln 12, in <module>
    from azure.cli.core.commands.parameters import (
ImportError: cannot import name 'edge_zone_type'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here…
  • az aks create -g {} -n {} --enable-pod-identity --network-plugin {}

Expected Behavior

Environment Summary

Linux-4.15.0-153-generic-x86_64-with-debian-buster-sid
Python 3.6.10
Installer: DEB

azure-cli 2.22.1 *

Extensions:
storage-preview 0.7.3
azure-devops 0.20.0
aks-preview 0.5.41
account 0.2.1

Additional Context

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
wassimbenregaya1commented, Jan 20, 2022

thanks all for replying im clossing this issue its like you said the problem was azure-cli version

1reaction
FumingZhangcommented, Jan 20, 2022

We recently refactored azure-cli and aks-preview, now aks-preview directly depends on azure-cli, the following are the dependencies between the two. And we are sorry about missing incompatibility hints between some versions.

aks-preview acs
0.4.4 ~ 0.5.39 >= 2.0.49
0.5.40 ~ 0.5.41 >= 2.23.0, missing hint
0.5.42 ~ 0.5.44 >= 2.27.0
0.5.45 ~ 0.5.48 >= 2.30.0
0.5.49 ~ 0.5.50 >= 2.31.0
Read more comments on GitHub >

github_iconTop Results From Across the Web

Use Azure Active Directory pod-managed identities in Azure ...
Learn how to use Azure AD pod-managed identities in Azure Kubernetes Service (AKS)
Read more >
Use AAD Authentication for Pods running in AKS
AAD Pod Identity allows you to authenticate your applications inside an AKS cluster without a password against Azure Active Directory.
Read more >
Azure/aad-pod-identity: [DEPRECATED] Assign ... - GitHub
Going forward, we will no longer add new features to this project in favor of Azure Workload Identity. We will continue to provide...
Read more >
Untangling AKS, Managed Identity and Key Vault | Notes to self
We need to deploy an identity and identity binding to the cluster. These Kubernetes resources will be used by the MIC to find...
Read more >
Implementing Azure AD Pod Identity in AKS Cluster
As organizations start to create and maintain clusters in AKS (Azure Kubernetes Service), they also need to use cloud-based identity and access management ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found