Java way to Azure CLI and KubeCTL

9/28/2019

I have a very basic REST API that provides some information, which was written with JAX-RS.

Now I want to implement some azure cli commands, like az acr repository list as well as kubectl.

I found the Azure Java SDK, and read its API reference, but I couldn't figure out how I will basically list the repositories.

Kubernetes example is much better, but I am stuck with Azure Container Registry.

Basically I am asking a code sample (reference), or tutorial, or guidance.

-- Turcia
azure
java
kubernetes

1 Answer

9/28/2019

Whatever my experience of using Azure docs, it's little hard to find API doc which will work for you and you may found some discrepancies between docs like one of API via cli vs sdk behaves different.

As per my work with various clouds, most of the cloud clients are inclined to use python SDKs. 3-4 ago, I had used java for openstack, now python. For VCloud, used java but now moving to python, in fact they stopped to provide java sdk.

Hope you have got some pointers.

-- vkumbhar94
Source: StackOverflow