Inquiry About the Maintenance Status of the Azure AKS Helm Deploy Pipe
Asked by Avinash Sachdewani:

Hello Bitbucket Community,

I'm currently using the Azure AKS Helm Deploy [Pipe](https://bitbucket.org/atlassian/azure-aks-helm-deploy/src/master/) in my CI/CD pipeline and have encountered issues related to Azure AD authentication and private cluster support. I'd like to inquire about the maintenance status of this pipe and whether there are plans to add support for these features. If you have insights or know of any alternatives or workarounds, your input would be greatly appreciated.  
Thanks!


Answers:
author: Igor Stoyanov
body: [@Avinash Sachdewani](/t5/user/viewprofilepage/user-id/5322543) hi. The [new version of the pipe](https://bitbucket.org/atlassian/azure-aks-helm-deploy/src/3.0.0/) available with an image  
mcr.microsoft.com/azure-cli:2.53.1  

```
script:  - pipe: atlassian/azure-aks-helm-deploy:3.0.0    variables:      AZURE_APP_ID: $AZURE_APP_ID      AZURE_PASSWORD: $AZURE_PASSWORD      AZURE_TENANT_ID: $AZURE_TENANT_ID      AZURE_AKS_NAME: $AZURE_AKS_NAME      AZURE_RESOURCE_GROUP: $AZURE_RESOURCE_GROUP      HELM_VERSION: 'v3.5.4'      HELM_RELEASE_NAME: 'myRedis'      HELM_COMMAND: 'upgrade'      HELM_UPGRADE_INSTALL_IF_NOT_PRESENT: 'true'      HELM_CHART_NAME: 'oci://registry-1.docker.io/bitnamicharts/redis'      HELM_COMMAND_ARGS: '--version 18.0.0'
```

Regards, Igor


author: Igor Stoyanov
body: [@Avinash Sachdewani](/t5/user/viewprofilepage/user-id/5322543) hi. Thanks for your question. We will bump azure-cli in this pipe, and will notify you when new version become available.  

Regards, Igor

comments: author: Avinash Sachdewani
body: Thank you [@Igor Stoyanov](/t5/user/viewprofilepage/user-id/4550492) for the response.  

I'm currently facing an issue when attempting to deploy to a private AKS cluster.  
The deployment fails while connecting via kubeconfig, and the error message is as follows:  

+ output='Error: Kubernetes cluster unreachable: Get "private link": getting credentials: exec: executable kubelogin not found 2109 2110 It looks like you are trying to use a client-go credential plugin that is not installed. 2111 2112 To learn more about this feature, consult the documentation available at: 2113 2114 2115 2116 kubelogin is not installed which is required to connect to AAD enabled cluster. 2117 2118 To learn more, please go to'  

It seems that kubelogin is required to connect to an Azure AD (AAD) enabled cluster, and it's not installed. You can find more information on this feature at [this link](https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins).  

I also attempted to add the bastion server as a known host, but the pipeline doesn't support passing the host to replace the private link with the known host.   
![Screenshot 2023-09-23 at 10.56.03 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/282480iD34596D63742D05A/image-size/large?v=v2&px=999 "Screenshot 2023-09-23 at 10.56.03 AM.png")

I'm unsure if adding code to replace the host should be incorporated into the pipeline.  

![Screenshot 2023-09-23 at 11.02.43 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/282482i7C125F3A0C82C1D0/image-size/large?v=v2&px=999 "Screenshot 2023-09-23 at 11.02.43 AM.png")  
Your guidance on this matter would be appreciated.  


author: Igor Stoyanov
body: [@Avinash Sachdewani](/t5/user/viewprofilepage/user-id/5322543), I could suggest just some common things:  

First try to deploy from your working machine to understand the process.  
After success, try to use pipelines, the script below allows you to use latest azure-cli:  

```
test: &test
  step:
    name: Test
    image: mcr.microsoft.com/azure-cli:2.52.0
    script:
      <your logic from previous step, commands you used to deploy from local machine>
```

Regards, Igor


Tags: bitbucket-cloud

cloud