Difference between revisions of "Error: creating Kubernetes Cluster"

From wikieduonline
Jump to navigation Jump to search
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 +
 +
[[ServicePrincipalNotFound]]
 +
 +
[[SkuNotAvailable]]
 +
  
 
  │ Error: creating Kubernetes Cluster (Subscription: "xxxxxxxx1"
 
  │ Error: creating Kubernetes Cluster (Subscription: "xxxxxxxx1"
  │ Resource Group Name: "5xxxxxxxx-rg"
+
  │ [[Resource Group Name]]: "5xxxxxxxx-rg"
 
  │ Kubernetes Cluster Name: "3xxxxxxx-aks"): performing CreateOrUpdate: unexpected status 404 ([[404 Not Found]]) with response: {
 
  │ Kubernetes Cluster Name: "3xxxxxxx-aks"): performing CreateOrUpdate: unexpected status 404 ([[404 Not Found]]) with response: {
 
  │  "code": "[[ServicePrincipalNotFound]]",
 
  │  "code": "[[ServicePrincipalNotFound]]",
Line 11: Line 16:
 
  │
 
  │
 
  │  with [[module.aks]].[[azurerm_kubernetes_cluster]].main,
 
  │  with [[module.aks]].[[azurerm_kubernetes_cluster]].main,
  │  on ../../main.tf line 17, in resource "azurerm_kubernetes_cluster" "main":
+
  │  on ../../main.tf line 17, in resource "[[azurerm_kubernetes_cluster]]" "main":
 
  │  17: resource "azurerm_kubernetes_cluster" "main" {
 
  │  17: resource "azurerm_kubernetes_cluster" "main" {
  
  
 +
 +
* [[Missing or invalid service principal when creating an AKS cluster]] https://learn.microsoft.com/en-us/troubleshoot/azure/azure-kubernetes/create-upgrade-delete/missing-or-invalid-service-principal
 +
 +
[[az ad sp list]]
 +
[[az ad sp add]]
 +
 +
 +
[[managed_identity_principal_id]]
 +
[[azurerm_resource_group]]
 +
 +
 +
export ARM_SUBSCRIPTION_ID="<[[azure_subscription_id]]>"
 +
export ARM_TENANT_ID="<[[azure_subscription_tenant_id]]>"
 +
export ARM_CLIENT_ID="<[[service_principal_appid]]>"
 +
export ARM_CLIENT_SECRET="<[[service_principal_password]]>"
 +
 +
 +
[[az account list]]
  
 
== See also ==
 
== See also ==

Latest revision as of 10:51, 16 July 2024

ServicePrincipalNotFound
SkuNotAvailable


│ Error: creating Kubernetes Cluster (Subscription: "xxxxxxxx1"
│ Resource Group Name: "5xxxxxxxx-rg"
│ Kubernetes Cluster Name: "3xxxxxxx-aks"): performing CreateOrUpdate: unexpected status 404 (404 Not Found) with response: {
│   "code": "ServicePrincipalNotFound",
│   "details": null,
│   "message": "Searching service principal failed. Details: service principal is not found",
│   "subcode": "ServicePrincipalNotFound"
│  }
│
│   with module.aks.azurerm_kubernetes_cluster.main,
│   on ../../main.tf line 17, in resource "azurerm_kubernetes_cluster" "main":
│   17: resource "azurerm_kubernetes_cluster" "main" {


az ad sp list
az ad sp add


managed_identity_principal_id
azurerm_resource_group


export ARM_SUBSCRIPTION_ID="<azure_subscription_id>"
export ARM_TENANT_ID="<azure_subscription_tenant_id>"
export ARM_CLIENT_ID="<service_principal_appid>"
export ARM_CLIENT_SECRET="<service_principal_password>"


az account list

See also[edit]

Advertising: