Using Azure SDK to connect Kubernetes cluster to Azure Arc

Copper Contributor

Hey gang,

I'm researching how I can automate connecting existing Kubernetes clusters to Azure Arc.

 

I'm following this guide https://docs.microsoft.com/en-us/azure/azure-arc/kubernetes/quickstart-connect-cluster, but having a hard time to map Azure CLI commands there to Azure SDK calls.

 

I'm looking for first of all, a confirmation that this is doable.

 

Then, where do I look for API that is used by the "connectedk8s" Azure CLI extension?

 

I realize it calls the underlying Kubernetes API, and can deal with it, but I don't understand what I need to call at the Azure side.

 

Thank you in advance for any input.

 

Cheers

Dmitri

1 Reply

@dfedorov-ciena connectedk8s is an azure extension for the cli.  You should start by downloading the CLI to your automation environment as per Install the Azure CLI | Microsoft Docs

Then download the Azure CLI extension, and call it via powershell in an elevated session.

 

Underlying or back-end APIs which aren't published may change frequently and aren't a supported integration point.