it throws error --
No subscriptions found for <SUBSCRIPTION-ID>
it throws error --
No subscriptions found for <SUBSCRIPTION-ID>
@shaileshpathak-6177 In order to enable Azure CLI, you need to have an active subscription as it creates a storage account for this purpose. If there is no active subscription avialable, this is expected.
Please "Accept as answer" wherever the information provided helps you to help others in the community.
what is meant by "active subscription"? do you have link to a docs? I'm not willing to accept your suggestion below to "use PowerShell"...
Hi shaileshpathak-6177, what are you trying to achieve, Could you pleaser throw some more light.
All I want to login to my account through command prompt and found the query how to do it and the process. which is through service principal. But when I hit the command I get the error No Subscription found.
Any update?>
All I want to login to my account through command prompt and found the query how to do it and the process. which is through service principal. But when I hit the command I get the error No Subscription found.
@shaileshpathak-6177 You can use PowerShell for this purpose which doesn't require a subscription. Refer to the stpes here:
https://docs.microsoft.com/en-us/powershell/azure/active-directory/signing-in-service-principal?view=azureadps-2.0
If you are getting below error while trying to connect to Azure CLI via portal and you don't have a subscription this is expected and there is no workaround for this. There must be a subscription avialable.
As I mentioned earlier, cloud shell requires a storage account to be created in the subscription. If you don't have a subscription, you cannot deploy storage account and use Azure CLI. Below is the resource group and storage account created for Azure CLI in my case:
Please "Accept as answer" wherever the information provided helps you to help others in the community.
4 people are following this question.