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.

Cannot deploy ACS - K8s in eastus

See original GitHub issue

Description

When running

az group create --name kube-demo --location eastus
az configure --defaults group=kube-demo location=eastus
az acs create --orchestrator-type=kubernetes --name=kube-demo-cluster --dns-prefix=acs-demo-123 --generate-ssh-key

I end up with the error:

Created SSH key files: /root/.ssh/id_rsa,/root/.ssh/id_rsa.pub
creating service principaldone
waiting for AAD role to propagate......done
Deployment failed. {
  "error": {
    "code": "NoRegisteredProviderFound",
    "message": "No registered resource provider found for location 'eastus' and API version '2017-07-01' for type 'containerServices'. The supported api-versions are '2015-11-01-preview, 2016-03-30, 2016-09-30, 2017-01-31, 2017-07-01'. The supported locations are 'japaneast, centralus, eastus2, japanwest, eastasia, southcentralus, australiaeast, australiasoutheast, brazilsouth, southeastasia, westus, northcentralus, westeurope, northeurope, eastus, ukwest, uksouth, westcentralus, westus2, southindia, centralindia, westindia, canadaeast, canadacentral'."
  }
}

Both the API version and the location are listed as valid in the error message.

Environment summary

Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: Docker

docker run -it -p 8001:8001 azuresdk/azure-cli-python:latest

CLI Version: What version of the CLI and modules are installed? (Use az --version)
Answer here: bash-4.3# az --version azure-cli (2.0.13+dev)

acr (2.0.10+dev) acs (2.0.12+dev) appservice (0.1.12+dev) batch (3.1.1+dev) billing (0.1.3+dev) cdn (0.0.6+dev) cloud (2.0.7+dev) cognitiveservices (0.1.6+dev) command-modules-nspkg (2.0.1+dev) component (2.0.7+dev) configure (2.0.10+dev) consumption (0.1.3+dev) container (0.1.8+dev) core (2.0.13+dev) cosmosdb (0.1.11+dev) dla (0.0.10+dev) dls (0.0.12+dev) eventgrid (0.1.1+dev) feedback (2.0.6+dev) find (0.2.6+dev) interactive (0.3.7+dev) iot (0.1.10+dev) keyvault (2.0.8+dev) lab (0.0.9+dev) monitor (0.0.8+dev) network (2.0.12+dev) nspkg (3.0.1+dev) profile (2.0.10+dev) rdbms (0.0.5+dev) redis (0.2.7+dev) resource (2.0.12+dev) role (2.0.10+dev) sf (1.0.6+dev) sql (2.0.9+dev) storage (2.0.12+dev) taskhelp (0.1.5+dev) vm (2.0.12+dev)

Python (Linux) 3.5.2 (default, Dec 27 2016, 21:33:11) [GCC 5.3.0]

Python location ‘/usr/local/bin/python’

OS Version: What OS and version are you using?
Answer here: Win10 version 1703 build 15063.540

Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: cmd.exe (with docker)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rjtsdlcommented, Aug 16, 2017

@jsturtevant, it is a bug in az cli. I am correcting it. After the fix, you should be able to deploy to eastus. The problem scope is only limited to eastus.

The change is to remove it from preview regions. Then it will be just a regular region. 😃

0reactions
nagarajasrcommented, Sep 2, 2017

i am still facing this issue with nightly build (2017-09-01)

ma@Azure:~$ ~/.local/bin/az --version
azure-cli (2.0.16+1.dev20170901)
acr (2.0.11+1.dev20170901)
acs (2.0.14+1.dev20170901)
appservice (0.1.15+1.dev20170901)
batch (3.1.2+1.dev20170901)
billing (0.1.4+1.dev20170901)
cdn (0.0.7+1.dev20170901)
cloud (2.0.7+1.dev20170901)
cognitiveservices (0.1.7+1.dev20170901)
command-modules-nspkg (2.0.1+1.dev20170901)
component (2.0.7+1.dev20170901)
configure (2.0.10+1.dev20170901)
consumption (0.1.4+1.dev20170901)
container (0.1.9+1.dev20170901)
core (2.0.15+1.dev20170901)
cosmosdb (0.1.12+1.dev20170901)
dla (0.0.11+1.dev20170901)
dls (0.0.13+1.dev20170901)
eventgrid (0.1.3+1.dev20170901)
feedback (2.0.6+1.dev20170901)
find (0.2.6+1.dev20170901)
interactive (0.3.9+1.dev20170901)
ot (0.1.11+1.dev20170901)
keyvault (2.0.9+1.dev20170901)
lab (0.0.10+1.dev20170901)
monitor (0.0.9+1.dev20170901)
network (2.0.13+1.dev20170901)
nspkg (3.0.1+1.dev20170901)
profile (2.0.11+1.dev20170901)
rdbms (0.0.6+1.dev20170901)
redis (0.2.8+1.dev20170901)
resource (2.0.13+1.dev20170901)
role (2.0.11+1.dev20170901)
servicefabric (0.0.3+1.dev20170901)
sf (1.0.8+1.dev20170901)
sql (2.0.10+1.dev20170901)
storage (2.0.14+1.dev20170901)
vm (2.0.13+1.dev20170901)

Python (Linux) 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609]

Python location '/usr/bin/python'

Legal docs and information: aka.ms/AzureCliLegal

me@Azure:~$ ~/.local/bin/az acs create --orchestrator-type kubernetes --name mykube --resource-group kubepoc --admin-username kube --agent-count 8 --agent-vm-size Standard_D2_v2 --api-version 2017-07-01 -d mykube --ssh-key-value ~/.ssh/id_rsa_azure.pub --verbose
Use existing SSH public key file: /home/me/.ssh/id_rsa_azure.pub
Microsoft.Network is already registered
Microsoft.Compute is already registered
Microsoft.Storage is already registered
Waiting for AAD role to propagate
AAD role propagation done[############################################]  100.0000%AAD role propagation done
Failed: mykube (Microsoft.ContainerService/containerServices)
Accepted: azurecli1504368576.29772071317 (Microsoft.Resources/deployments)
Failed: azurecli1504368576.29772071317 (Microsoft.Resources/deployments)
Deployment failed. {
  "error": {
    "code": "NoRegisteredProviderFound",
    "message": "No registered resource provider found for location 'eastus2' and API version '2017-07-01' for type 'containerServices'. The supported api-versions are '2015-11-01-preview, 2016-03-30, 2016-09-30, 2017-01-31, 2017-07-01'. The supported locations are 'japaneast, centralus, eastus2, japanwest, eastasia, southcentralus, australiaeast, australiasoutheast, brazilsouth, southeastasia, westus, northcentralus, westeurope, northeurope, eastus, ukwest, uksouth, westcentralus, westus2, southindia, centralindia, westindia, canadaeast, canadacentral'."
  }
}

same error with location set to southindia and eastus. my current default location is eastus2


Welcome to the Azure CLI! This command will guide you through logging in and setting some default values.

Your settings can be found at /home/nagu/.azure/config
Your current configuration is as follows:

[cloud]
name = AzureCloud

[defaults]
location = eastus2

Environment variables:
AZURE_HTTP_USER_AGENT = cloud-shell/1.0
Read more comments on GitHub >

github_iconTop Results From Across the Web

Supported Kubernetes versions in Azure Kubernetes Service
Understand the Kubernetes version support policy and lifecycle of clusters in Azure Kubernetes Service (AKS)
Read more >
azure - Unable to connect to the server: dial tcp: lookup ...
It is an external connectivity provider to connect with our kubernetes cluster. We can't connect with the private cluster externally. Believe me ...
Read more >
Deploying Kubernetes into a VNET on Azure with ACS ...
In the real world, we often need to connect applications in with other infrastructure, like a database or caching layer.
Read more >
Deploying a multi-container application to Azure ...
Replace <region> with the region of your choosing, for example eastus. version=$(az aks get-versions -l <region> --query ...
Read more >
How to create AKS Cluster | Setting Up & Deploying an Azure ...
Join the FREE Masterclass for Kubernetes & Container Demo on Azure here https://bit.ly/3j4Sp3mMicrosoft quotes that from 2022, more than 75% ...
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