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...
KoenigConstantin
Jun 26, 2023Copper Contributor
Hey Fjorgego
Thanks for your answer.
Unfortunately, I don't have a cluster but individual Arc Server's in Azure Arc.
Do you know the command for this as well?
Kind Regards
Fjorgego
Jun 26, 2023Copper Contributor
Hey!!
You can try this:
Replace <cluster_name> with the name of your individual AKS instance in the --cluster-name parameter.
Change the --scope parameter from cluster to namespace to specify the namespace within the individual AKS instance where the extension will be installed. You can replace <namespace> with the desired namespace.
Keep the other parameters and values as they are and make sure to replace <individual_aks_name>, <resource_group_name>, and <namespace> with the actual names relevant to your setup.
You can try this:
Replace <cluster_name> with the name of your individual AKS instance in the --cluster-name parameter.
Change the --scope parameter from cluster to namespace to specify the namespace within the individual AKS instance where the extension will be installed. You can replace <namespace> with the desired namespace.
Keep the other parameters and values as they are and make sure to replace <individual_aks_name>, <resource_group_name>, and <namespace> with the actual names relevant to your setup.
- KoenigConstantinJun 26, 2023Copper ContributorHey,
So when I try this command ( I hope I unterstood it right):
az k8s-extension create --name aadsshlogin --cluster-type connectedClusters --cluster-name ubuntu2204 --resource-group testgroup2 --extension-type 'Microsoft.Azure.AppServices.appservices-arc-ssh-login' --extension-name aadsshlogin --auto-upgrade-minor-version --scope namespace --release-train stable --configuration-settings "ClientMode=ClientCertificate"
I get this error:
unrecognized arguments: --extension-name aadsshlogin
Have I made some mistakes in the command?
Many Thanks to you for helping me.
Kind Regards- FjorgegoJun 26, 2023Copper ContributorHey!
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 🙂- KoenigConstantinJun 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