Our .Net projects are using VS 2017, and requires Azure Storage Emulator in Azure SDK to run unit tests. Our CI/CD is running in VSTS. We want to use some hosted build agent in VSTS agent pools. There are two issues we encountered. Firstly, according to official document, Hosted VS2017 seems don't have Azure SDK installed. Secondly, when running command C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe start, it failed with Error: Unable to start the storage emulator.
Azure SDK not available on Hosted VS2017 VSTS Build Agent?
541 Views Asked by Zhiliang At
2
There are 2 best solutions below
0
Cocowalla
On
I've been running the Azure Storage Emulator on a VS2017 hosted build agent for a long time now.
The trick is to initialise SQL LocalDB first (the emulator uses it), and then start the emulator. You can do this with a command line task that runs:
sqllocaldb create MSSQLLocalDB
sqllocaldb start MSSQLLocalDB
sqllocaldb info MSSQLLocalDB
"C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" start
Related Questions in AZURE
- How to update to the latest external Git in Azure Web App?
- I need an azure product that executes my intensive ffmpeg command then dies, and i only get charged for the delta. Any Tips?
- Inject AsyncCollector into a service
- mutual tls authentication between app service and function app
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- Application settings for production deployment slot in Azure App Services
- Encountered an error (ServiceUnavailable) from host runtime on Azure Function App
- Implementing Incremental consent when using both application and delegated permissions
- Invalid format for email address in WordPress on Azure app service
- Producer Batching Service Bus Vs Kafka
- Integrating Angular External IP with ClusterIP of .NET microservices on AKS
- Difficulty creating a data pipeline with Fabric Datafactory using REST
- Azure Batch for Excel VBA
- How to authenticate only Local and Guest users in Azure AD B2C and add custom claims in token?
- Azure Scale Sets and Parallel Jobs
Related Questions in VISUAL-STUDIO-2017
- file download method in visual studio 2017
- Icons for Visual Studio 2017 Solution Explorer file types
- How can I remove a lib file from "Commandline" in VS2017?
- How can I get cascading reference dlls in one project to build into my main website project?
- Qt Addin: Attempt to add newer Qt version "There's no Qt version assigned to project"
- Alternative for nextafter when backporting to visual studio 2013
- Switch. case var b when b.Contains("SomeString"): Won't compile
- simple openmp c++ problem when using for loop
- How to forbidden trotoiseMerge in Vs2017 use the built-in merge tool
- How to change Visual Studio 2017 default Window layout in C++ sytle?
- Run SSIS package through Server its working fine but that package I am running on my local system its not working
- Unable to launch the IIS Express Web server in vs 2017
- Error in displaying the Extension in SSMS created in Visual Studio (VSIX project) when right clicking any tables
- Visual Studio 2017 (or higher) configure IDE to use MetadataAsSource folder under project build folder and not in AppData\Local\Temp
- I can't understand C2665 error (VS 2017 / 15.9.58)
Related Questions in AZURE-DEVOPS
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Error: VS800075 when downloading artifact from another project
- Azure Scale Sets and Parallel Jobs
- Get current Timestamp in CET format and concatenate with string in yml file
- Post-Job Checkout Hanging in Azure DevOps Pipelines
- Referencing yml file from submodule in main pipeline
- Where to find a User Story draft?
- Self Hosted Agent service startup getting failed on VM restart
- Azure pipeline unable to deploy via a bicep file and set values for its parameters
- Dacpac deployment to Azure via SSMS failed: Cannot alter the role db_owner
- NodeJS [Errno 13] Permission denied - Azure DevOps pipleline AWS Lambda deployment
- Share variables across stages in azure pipelines with templates
- Can I move an Azure Data Factory Pipeline to Azure DevOps?
- How to migrate a single workitem in Devops
- Deploy Docker Image into AKS cluster using Azure Release Pipelines with the parameters like clustername, acr, resourcegroup
Related Questions in BUILD-AGENT
- Using wrong version of SQLLocaldb on Windows-Latest Devops Build Agent - possibly?
- Azure Pipeline Agent get triggered but results in old pipeline run
- Configuring an azure azagent gives me canonical issue
- Intermittent "You don't have access to this" error with selenium tests running on azure build agent with Azure AD
- Is there a difference or way to pick between Hosted Agents machine names 'fv-az532-*' and 'WIN-*'?
- Why does AzureStaticWebApp@0 trigger docker command
- Azure Devops 2022RC [on-prem] Build Issues with .NET 7
- How to automatically restart a Docker container with/from a clean image?
- Server Core Docker image with "VSTEST" and "VISUALSTUDIO" capabilities for a hosted DevOps Agent
- Azure Devops 2019 Batch Changes Does Not Queue Build
- Use `Microsoft.NETCore.UniversalWindowsPlatform` from NuGet on build agent
- Microsoft.Extensions.* 3.1.* is not compatible with netcoreapp3.1 on Azure agent "windows-latest"
- Why do I need to use Build Agents in a CICD pipeline?
- g++ cannot link libatomic library on Microsoft user-agent
- Using TFS 2018 to build a solution with VS 2019
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The VSTS Hosted agent is running as service that you can’t start storage emulator (init is ok).
Check the related thread: Failed to start AzureStorageEmulator on VSTS Hosted VS2017 Agent