Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start Azurite if already installed #3229

Open
jguadagno opened this issue Jul 14, 2020 · 6 comments
Open

Start Azurite if already installed #3229

jguadagno opened this issue Jul 14, 2020 · 6 comments
Assignees
Labels
💡 feature request New feature or request
Milestone

Comments

@jguadagno
Copy link

Is your feature request related to a problem? Please describe.
One of the things I forget to do when working with Storage, Queues, and Tables is starting the emulator. Most of the time I have to wait for the connection in the Storage Account > Emulator - Default Ports - Queues or Blobs to timeout before I realize that I did not start the emulator.

Describe the solution you'd like
I would like that if I am in the "Local & Attached\Storage Accounts" tree of the Explorer and the Explorer can not connect to the local emulator to either prompt me to start it, or better yet start it for me.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@JasonYeMSFT JasonYeMSFT added the 💡 feature request New feature or request label Jul 15, 2020
@MRayermannMSFT MRayermannMSFT added this to the 1.16.0 milestone Jul 20, 2020
@JasonYeMSFT JasonYeMSFT modified the milestones: 1.16.0, 1.17.0 Sep 3, 2020
@JasonYeMSFT JasonYeMSFT added this to Committed in Storage Explorer via automation Sep 3, 2020
@MRayermannMSFT MRayermannMSFT modified the milestones: 1.17.0, Near Future Nov 2, 2020
@MRayermannMSFT MRayermannMSFT added the ❗ P1 Fix for next release label Feb 8, 2021
@MRayermannMSFT MRayermannMSFT removed their assignment Apr 14, 2021
@MRayermannMSFT MRayermannMSFT added the ❔ investigate We need to look into this further label Apr 14, 2021
@MRayermannMSFT MRayermannMSFT self-assigned this Apr 14, 2021
@MRayermannMSFT MRayermannMSFT modified the milestones: Near Future, 1.21.0 Apr 14, 2021
@MRayermannMSFT MRayermannMSFT added ❗ P1 Fix for next release and removed ❗ P1 Fix for next release labels Apr 26, 2021
@MRayermannMSFT MRayermannMSFT modified the milestones: 1.21.0, Near Future Apr 26, 2021
@MRayermannMSFT MRayermannMSFT modified the milestones: Near Future, 1.22.0 Jul 7, 2021
@MRayermannMSFT MRayermannMSFT removed the ❔ investigate We need to look into this further label Sep 23, 2021
@MRayermannMSFT MRayermannMSFT moved this from Committed to In Progress in Storage Explorer Sep 23, 2021
@MRayermannMSFT
Copy link
Member

MRayermannMSFT commented Nov 19, 2021

@jguadagno @jukkamaljanen some questions for you:

  • How many emulators do you usually have running at once? If more than one, please be specific about how many.
  • Do you use Azurite?
  • If you do, where do you keep your Azurite data?
  • If you don't, what emulator are you using?

@jguadagno
Copy link
Author

@MRayermannMSFT

How many emulators do you usually have running at once? If more than one, please be specific about how many.
Usually, one, but it depends. On a Windows machine, I typically had the AzureStorageEmulator and Azurite (in Docker) running

Do you use Azurite?
Now I do. I have it running in Docker, plus JetBrains Rider has the ability to start an instance of Azurite

If you do, where do you keep your Azurite data?
I try to keep my data in one location for Azure c:\Projects\Data

@MRayermannMSFT
Copy link
Member

MRayermannMSFT commented Nov 29, 2021

@jguadagno thanks for answering my questions. Taking a look at JetBrains Rider definitely expanded my thoughts on what we would want to do for a "start the emulator for you" feature. For now, in 1.22, we're simply going to prompt:

image

We'll keep watching this issue for additional feedback from people on wanting to "start" instead of "prompt". For future people, some things we'd like to know about are (and some of these are repeat questions from above):

  • Do you use Azurite? If no, what do you use?
  • Would you want Storage Explorer to support starting multiple instances of Azurite for you?
  • Do you want started Azurite instances to keep running after Storage Explorer is closed?
  • Do you want to be able to stop/restart started Azurite instances while Storage Explorer is running?
  • Do you want to be able to see Azurite's output?
  • If you wanted multiple Azurite instances to be started, how would you want to configure the data locations for each instance? For a single instance, we think just having a single setting should be sufficient, but once we start thinking about multiple instances it isn't quite clear.

@jguadagno
Copy link
Author

@MRayermannMSFT

Would you want Storage Explorer to support starting multiple instances of Azurite for you?

I could the possibility of wanting to start multiple instances if you are trying to replicate different storage regions with the same names for queues/containers or acting like different clients with the same name queues/containers

Do you want started Azurite instances to keep running after Storage Explorer is closed?

Probably not. I typically only have it running when I start the solution and close it when the solution close (a feature of Jetbrains Rider)

Do you want to be able to stop/restart started Azurite instances while Storage Explorer is running?

For me, probably not

Do you want to be able to see Azurite's output?

The output would be helpful to ensure connection and validating content is being sent/received

If you wanted multiple Azurite instances to be started, how would you want to configure the data locations for each instance? For a single instance, we think just having a single setting should be sufficient, but once we start thinking about m
multiple instances it isn't quite clear.

I think if you have multiple instance you would want a configuration with the data location unless you have a default. If a configuration, may like a configuration for port or port range along with storage location, Example

[
 { 
  name: "Client 1",
 queuePort: 10001,
queueStorage: `/client1/queues',
storagePort: 10002,
storageStorage: `/client1/storage'
], etc...

or

[
 { 
  name: 'Client 1'
 portRangeStart: 10000,
storageRoot: '/client1'
]

from the second you could infer the ports based on the standard default ports and infer the storage based on the default storage paths.

@MRayermannMSFT MRayermannMSFT changed the title Prompt to start the Storage Emulator if the Explorer can not connect to one Start Azurite if already installed Nov 30, 2021
@MRayermannMSFT MRayermannMSFT removed the ❗ P1 Fix for next release label Nov 30, 2021
@MRayermannMSFT MRayermannMSFT modified the milestones: 1.22.0, Near Future Nov 30, 2021
@OzBob
Copy link

OzBob commented Feb 4, 2022

I would propose that a 4th button be added that would open command prompt with default azurite start command

@MrAntix
Copy link

MrAntix commented Jun 26, 2023

Run Azurite could replace the Install Azurite button, if you do a check for it in the commonly installed places, specifically when installed along side VS 2022

https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azurite?tabs=visual-studio#run-azurite

Install Azurite should be a link and not a button, as it doesn't do the action.

There needs to be a concise way to get going, and running Azurite for most users would be a great step.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 feature request New feature or request
Projects
Storage Explorer
  
In Progress
Development

No branches or pull requests

5 participants