microsoft / azure_arc

Automated Azure Arc, Edge, and Platform environments
https://aka.ms/ArcJumpstart
Creative Commons Attribution 4.0 International
737 stars 545 forks source link

PowerShell error when running the configure-AKSWorkloadCluser.ps1 #2469

Closed IAmITGeek84 closed 5 months ago

IAmITGeek84 commented 5 months ago

Is your issue related to a Jumpstart scenario, ArcBox, HCIBox, or Agora? <!--- A link to the Jumpstart scenario you are working on. --->

Describe the issue or the bug

I have sucessfully deployed the HCI box in my Azure subscriptiona and followed the pre-requisite steps to setup a Kubernetes Cluster. I have updated the ps1 file with the Object ID of my security group, however when I run the PowerShell script to setup the AKS cluster I get the following error: 2024-03-23 21:49:29.047726 Error: BadRequest Detail: admission webhook "vhybridakscluster.kb.io" denied the request: Logical network hcibox-aks-lnet-vlan110 does not have an ippool. The AKS cluster gets created but in a failed state **To Reproduce** Running this scrip should successfully create the AKS cluster in an active state **Environment summary**

Have you looked at the Troubleshooting and Logs section?

Screenshots

Additional context

dkirby-ms commented 5 months ago

This looks like a similar issues to #2474

IAmITGeek84 commented 5 months ago

Apologies I am not familiar with the process of logging a support issue in GitHub. Can you explain what the resolution is for this? What do I need to do to get this working in my environment?

From: Dale Kirby @.> Date: Tuesday, 26 March 2024 at 15:35 To: microsoft/azure_arc @.> Cc: IAmITGeek84 @.>, Author @.> Subject: Re: [microsoft/azure_arc] PowerShell error when running the configure-AKSWorkloadCluser.ps1 (Issue #2469)

Closed #2469https://github.com/microsoft/azure_arc/issues/2469 as completed via #2475https://github.com/microsoft/azure_arc/pull/2475.

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/azure_arc/issues/2469#event-12252374896, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASY4PHQJOSDDFNKBWL7I44LY2GIUJAVCNFSM6AAAAABFE6UYK6VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSGI2TEMZXGQ4DSNQ. You are receiving this because you authored the thread.Message ID: @.***>

dkirby-ms commented 5 months ago

Apologies @IAmITGeek84

Try the following to fix the issue in your environment.

1) Grab the latest version of Configure-AKSWorkloadCluster.ps1 2) From Azure portal, delete the hcibox-aks-lnet-vlan110 Az Stack HCI Logical network 3) Uncomment and add your AAD groupID to the script 4) re-run the script