azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Microsoft.CloudShell Namespace Registration issue in Azure Cloud Shell - Started This Afternoon for No Reason.

Open mackswift opened this issue 3 years ago • 20 comments

Describe the bug

Azure Cloud Shell shows this message on every login:

Storage fileshare subscription subscription ID is not registered to Microsoft.CloudShell Namespace. Please follow these instructions "https://aka.ms/RegisterCloudShell" to register. In future, unregistered subscriptions will have restricted access to CloudShell service.

The instructions on this page do not resolve the issue. The message continues to show up every single time the cloud shell is started. Prior to today, this message did not appear. Also, Microsoft.Cloudshell is registered.

Related command

There is no related command. This began displaying today upon starting up the Azure Cloud Shell.

Errors

Storage fileshare subscription is not registered to Microsoft.CloudShell Namespace. Please follow these instructions "https://aka.ms/RegisterCloudShell" to register. In future, unregistered subscriptions will have restricted access to CloudShell service.

image

Issue script & Debug output

Not applicable

Expected behavior

The Cloud Shell should not be displaying a 'not registered' message while the Microsoft.CloudShell Namespace is clearly registered.

Environment Summary

azure-cli 2.53.0 *

core 2.53.0 * telemetry 1.1.0

Extensions: ai-examples 0.2.5 azure-iot 0.22.0 ml 2.21.1 ssh 2.0.2

Dependencies: msal 1.24.0b2 azure-mgmt-resource 23.1.0b2

Python location '/usr/bin/python3.9' Extensions directory '/home/mack/.azure/cliextensions' Extensions system directory '/usr/lib/python3.9/site-packages/azure-cli-extensions'

Python (Linux) 3.9.14 (main, Oct 12 2023, 19:48:32) [GCC 11.2.0]

Legal docs and information: aka.ms/AzureCliLegal

You have 2 update(s) available. They will be updated with the next build of Cloud Shell. New Azure CLI version available. Running 'az upgrade' to update automatically. This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus Your current Azure CLI version is 2.53.0. Latest version available is 2.53.1. Please check the release notes first: https://docs.microsoft.com/cli/azure/release-notes-azure-cli Do you want to continue? (Y/n): n

Additional context

I also can't seem to upgrade Azure CLI to version 2.53.1. The prompt just hangs and hangs until I Ctrl-C back to the prompt.

mackswift avatar Oct 27 '23 00:10 mackswift

Hi @mackswift,

2.53.0 is not the latest Azure CLI(2.53.1).

If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

Thank you for opening this issue, we will look into it.

yonzhan avatar Oct 27 '23 00:10 yonzhan

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/azure-iot-cli-triage.

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @maertendMSFT.

There was a bug in the image code and it is fixed on 10/31/2023. If your subscription is registered and you still see this message after restarting cloudshell, please comment here. Thank you.

hima-gadupudi avatar Oct 31 '23 17:10 hima-gadupudi

I'm still seeing this issue after completing the instructions on the page. What additional steps should I take to resolve this?

javacavaj avatar Nov 02 '23 19:11 javacavaj

@hima-gadupudi : After I registered the provider with my subscription, I needed to restart my Cloud Shell. THANK YOU!

DaleyKD avatar Nov 09 '23 01:11 DaleyKD

Everything seems fine now. Thank you!

mackswift avatar Nov 10 '23 00:11 mackswift

I am still seeing this as of today, 12/14 Untitled

brthurr avatar Dec 14 '23 23:12 brthurr

I have the same issue as brthurr Storage Fileshare not registered

clr2of8 avatar Dec 15 '23 01:12 clr2of8

Do we have to do anything about this on our subscription level as I am also getting this warning on my cloudshell

Amrish-Sharma avatar Dec 18 '23 09:12 Amrish-Sharma

I am also seeing the error in my subscription.

weeyin83 avatar Dec 20 '23 15:12 weeyin83

I am also getting the same warning

moshfiqrony avatar Jan 08 '24 05:01 moshfiqrony

Still a problem here too.

ScottWatsonWork avatar Jan 15 '24 15:01 ScottWatsonWork

+1

smereczynski avatar Jan 16 '24 10:01 smereczynski

Still a problem here too.

So it turns out my storage account was not in the same subscription ( found using the env | grep ACC_STORAGE_PROFILE ) I was using some other subscription and that one indeed didn't have cloudshell registered. I ended up deleting the storage account and moving to a new one in my most used subscription. ( needed to use clouddrive unmount and clouddrrive mount commands )

ScottWatsonWork avatar Jan 16 '24 13:01 ScottWatsonWork

Attempted de-registering and re-registering. I only have one subscription. Issue persists.

Screenshot 2024-03-07 at 11 14 20 AM

Edit: Seems to be working now... several hours later

benprebble-maker avatar Mar 06 '24 22:03 benprebble-maker

I am getting this same error. I have 2 subscriptions, and I have Microsoft.Storage and Microsoft.CloudShell registered under resource providers on both. The subscription number in the error is my student account and as you can see in the screenshot, these are registered. How do I resolve the error?

UPDATE I fixed this by clicking the settings gear on the shell window --> reset user settings --> reset

image

mczteinaz avatar Mar 25 '24 04:03 mczteinaz

I am getting this same error. I have 2 subscriptions, and I have Microsoft.Storage and Microsoft.CloudShell registered under resource providers on both. The subscription number in the error is my student account and as you can see in the screenshot, these are registered. How do I resolve the error?

UPDATE I fixed this by clicking the settings gear on the shell window --> reset user settings --> reset

image

Thank you!!!! This is exactly what fixed mine today

Olypensun avatar Apr 17 '24 21:04 Olypensun

I am getting this same error. I have 2 subscriptions, and I have Microsoft.Storage and Microsoft.CloudShell registered under resource providers on both. The subscription number in the error is my student account and as you can see in the screenshot, these are registered. How do I resolve the error? UPDATE I fixed this by clicking the settings gear on the shell window --> reset user settings --> reset image

Thank you!!!! This is exactly what fixed mine today

This worked for me too.

raghumuttana avatar Apr 30 '24 15:04 raghumuttana