Connecting to Azure from PowerShell with certificates

475 views Asked by At

I might be getting this completely wrong. I have researched on Google AND Bing regarding this but I haven't found a solution.

How can I connect to someone else's azure subscription from the PowerShell if the other person has uploaded my .cer file to his Azure account in order to allow me access without knowing his Azure login credentials?

What are some other ways of doing this?

Thanks.

1

There are 1 answers

3
Martin Brandl On BEST ANSWER

You can pass the certificate to the Set-AzureSubscription cmdlet:

Set-AzureSubscription -SubscriptionName $subscriptionName -SubscriptionId $subscriptionId -Certificate $certificate