Forum Discussion
KoenigConstantin
Jun 26, 2023Copper Contributor
Adding Extension AADSSHLogin over AZ CLI
Good day, I would like to add some servers to Azure Arc in an automated way. However, one of the requirements is that people can connect via AADSSH. Therefore, as the title says, I am trying to add...
Fjorgego
Jun 26, 2023Copper Contributor
Hey!
Can you please try like this:
az k8s-extension create --name aadsshlogin --cluster-type connectedClusters --cluster-name ubuntu2204 --resource-group testgroup2 --extension-type 'Microsoft.Azure.AppServices.appservices-arc-ssh-login' --auto-upgrade-minor-version --scope namespace --release-train stable --configuration-settings "ClientMode=ClientCertificate"
Hope it helps 🙂
Can you please try like this:
az k8s-extension create --name aadsshlogin --cluster-type connectedClusters --cluster-name ubuntu2204 --resource-group testgroup2 --extension-type 'Microsoft.Azure.AppServices.appservices-arc-ssh-login' --auto-upgrade-minor-version --scope namespace --release-train stable --configuration-settings "ClientMode=ClientCertificate"
Hope it helps 🙂
KoenigConstantin
Jun 26, 2023Copper Contributor
Heyy
Now there's an other error message 😄
The Resource 'Microsoft.Kubernetes/connectedClusters/ubuntu2204' under resource group 'testgroup2' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
I double checked the machine name and the resource group, but somehow it doesn't find my server 😞
Kind regards
- FjorgegoJun 27, 2023Copper ContributorHey!
I'm out of ideas of what it could be...did you double check if the machine is created under the resource group testgroup2?
Best Regards,- KoenigConstantinJun 28, 2023Copper Contributor
Heyy,
Yea I did look up both names. I'm a bit confused why its trying to search for the maschine under following link:
Microsoft.Kubernetes/connectedClusters/ubuntu2204
Because it isnt related to any Kubernetes.
Is this command really right for my linux on premise server?
Kind regards