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 if you don't have a subscription, you need to 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:

  1. Open Windows Terminal and install the Azure CLI:
  2. winget install Azure.CLI
  3. Install the support extension:
  4. az extensions add --name support
  5. Login to Azure:
  6. az login
  7. Get the ID for the Subscription Management service:
  8. az support services list --query "[?contains(displayName, 'Subscription management')].name"
  9. Get the ID for the "Unable to access my subscription / Issues signing in or accessing my subscriptions" problem category:
  10. 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"
  11. Get the "A-3" country code from this page: List of ISO 3166 country codes
  12. Get the "Name of Time Zone" from this page: Microsoft Time Zone Index Values
  13. Create the support case:
  14. 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 homepage