Search code examples
azuretfsazure-storageazure-blob-storageazure-storage-emulator

Microsoft Azure Tools: Port conflict with existing application?


I am using TFS a azure application in server, and I found this error , I couldn't resolve this since then,

Microsoft Azure Tools: Failed to initialize Microsoft Azure storage emulator. Port conflict with existing application.

Can anyone please help me in providing me steps to resolve this please.


Solution

  • By default, Azure storage emulator is using port number 10000, 10001, 10002 for Blob, Queue and Table services respectively.

    If you have existing applications using these port numbers and can't be changed, you can resolve the port conflict by changing Azure storage emulator default port numbers to avoid port conflict as the steps below:

    1. Stop your Azure storage emulator service
    2. Go to your storage emulator default installation folder, which is located at C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator
    3. Open the AzureStorageEmulator.exe.config file for edit
    4. Edit the default port numbers as shown below enter image description here
    5. Start your Azure storage emulator service.

    You should expect the Azure storage emulator to start successfully without any port conflict.

    Hope it helps!