Creating an Azure support case without a subscription

10 Sept 2024

I recently lost access to one of my Azure subscriptions and could no longer see it in the subscription list in the Azure Portal or using the Azure CLI.

Of course you can create a support case from the Azure portal but only you have a subscription. If you don't, you can use the Azure CLI to create it.

Screenshot of the Azure Portal showing the support case creation form with the required subscription dropdown box.

Here's how you can create an Azure support case using the Azure CLI:

    winget install Azure.CLI
  1. Install the support extension:
  2. az extensions add --name support
  3. Login to Azure:
  4. az login
  5. Get the ID for the Subscription Management service:
  6. az support services list --query "[?contains(displayName, 'Subscription management')].name"
  7. Get the ID for the "Unable to access my subscription / Issues signing in or accessing my subscriptions" problem category:
  8. az support services problem-classifications list --service-name "[GUID from previous result here]" --query "[?contains(displayName, 'Unable to access my subscription / Issues signing in')].id"
  9. Get the "A-3" country code from this page: List of ISO 3166 country codes
  10. Get the "Name of Time Zone" from this page: Microsoft Time Zone Index Values
  11. Create the support case:
  12. az support no-subscription tickets create --ticket-name "CannotAccessSub" --title "I cannot access my subscription" --contact-country "[Your A-3 Country Code]" --contact-email "[Your email address]" --contact-first-name "[Your first name]" --contact-language "en-us" --contact-last-name "[Your last name]" --contact-method "email" --contact-timezone "[Your time zone name]" --description "I can no longer see my Azure subscription listed in the portal or CLI. Sub Name=[Your Sub Name Here] Sub ID=[Your Sub ID Here]" --advanced-diagnostic-consent "Yes" --problem-classification "[The problem classification ID you got earlier]" --severity "minimal"
back to top