Share via

Unable to re-create storage for cloud shell using Learning subscription

Dominic Cronin 1 Reputation point
2021-01-05T16:58:01.077+00:00

I've been working through some of the Azure learning exercises, using a learning subscription. (https://learn.microsoft.com/en-gb/learn/modules/optimize-your-web-apps-with-redis/6-exercise-connect-an-app-to-the-cache?pivots=csharp) I'd run into a brick wall with some msbuild issues (possibly related to switching .net core versions?? Whatever...) After trying various options to fix these issues, I concluded that it would be interesting to try to start from a clean system.

First I threw away the shell, closed the browsers, then returned and let the system create a new sandbox for me (one of my 10 per day). I'd hoped that would be enough, but my problems persisted so I figured... delete everything... went into the portal and deleted the resource for the cloudshell (not sure exactly what the item type was but it had cloudshell in the name).

I'm assuming this was the storage, because now when I go back in to the tutorial it creates a shell but says there's no storage and then 403s when trying to create the storage. Like this:

{"error":{"code":"AuthorizationFailed","message":"The client 'live.com#dominiccronin@Karima ben .com' with object id 'eceafdd2-301b-45aa-8eac-0d2b18661f6e' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope '/subscriptions/3dea82b3-b58e-4478-a9c9-ee2d973577a8/resourcegroups/cloud-shell-storage-northeurope' or the scope is invalid. If access was recently granted, please refresh your credentials."}}
Can't create a storage account. Please try again.

Since contacting support and being advised to create a question here, the issue seems to have resolved itself. I'm completing this now so that you have the information in case it's useful for you. As far as I know, I don't need any further help, so please feel free to treat this question as for your information only.

Thanks
Dominic

Azure Cloud Services
Azure Cloud Services

An Azure platform as a service offer that is used to deploy web and cloud applications.

0 comments No comments

2 answers

Sort by: Most helpful
  1. RaTheMigthy 0 Reputation points
    2023-04-17T09:26:24.97+00:00

    I had the same problem. As Sandbox is activated the storage account is created. When you delete it, you just have to recreate it manually (you have the option to show advanced options on the pop up, on the right site of the screen with exercise) or wait while the 2nd sandbox will be created - it will create a new storage account for Powershell from scratch.

    User's image

    Was this answer helpful?

    0 comments No comments

  2. vipullag-MSFT 26,537 Reputation points Moderator
    2021-01-18T05:57:14.783+00:00

    @Dominic Cronin

    As mentioned by you, it could be a interment issue and it is resolved.

    Thanks for sharing the information for the benefit of community.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.