Azure powershell Select-AzureSubscription - error: the subscription name doesn't exist

Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Azure powershell Select-AzureSubscription - error: the subscription name doesn't exist

Message par Clippy »

Azure powershell Select-AzureSubscription - error: the subscription name doesn't exist
Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Re: Azure powershell Select-AzureSubscription - error: the subscription name doesn't exist

Message par Clippy »

If you are using Resource Manager, the correct cmdlet is:

```
Get-AzureRmSubscription –SubscriptionName "" | Select-AzureRmSubscription

```

or just use -SubscriptionId instead of -SubscriptionName.

Select-AzureSubscription is to be used to manage classic resources. To make it work you also have to add classic credentials using:

```
Add-AzureAccount

```
Répondre

Revenir à « Azure Infrastructure »