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?
535 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
- Why does Azure Auto-Scale scale go lower then minimum amount of instances?
- Data execution plan ended with error on DB restore
- Why does Azure CloudConfigurationManager.GetSetting return null
- Do I need other roles than Worker Role for a web site and service layer in Azure?
- Azure Web App PATH Variable Modification
- Azure Data Factory: LinkedService for AzureSql in failed state
- How To Update a Web Application In Azure and Keep The App Up the whole time
- Using Azure MobileServices library with my own LAN WebApi
- ionCube loader error on Azure IIS
- App crash (if closed) after click on notification
- How to get sql data bases instances in azure using java api
- I want to create file in azure share using python PUT requests but getting error signature not correct including headers
- Enabling OPTIONS method on Azure Cloud Service (to enable CORS)
- Redirecting subdomain to directory on Azure
- Kaltura account settings error
Related Questions in VISUAL-STUDIO-2017
- No templates in Visual Studio 2017
- Xamarin.iOS on the Mac Server is not compatible
- NuGet Console in visual studio 2017 RC won't Add-Migration or Update-Database?
- VS2017 RC Web deploy - ERROR_CERTIFICATE_VALIDATION_FAILED
- How to use an ASP.NET Core environment variable in testing with Visual Studio
- How to create F# .Net Core ConsoleApp in Visual Studio 2017 RC
- Can I suppress a specific C6031 warning? CString::LoadString
- InterlockedExchange issue with C28112/3
- AppSettings.*.json files not copied on Publish in ASP.NET CORE 1.1
- Does Visual Studio 2017 Community create a Services folder for Dependency Injection with Core 1.0?
- dotnet exec needs a managed .dll or .exe extension while adding Entity Framework Core (1.1.0) Migrations
- project can't be set as Class Library in visual studio
- How to connect with SQL Server database using .NET Core Class Library (.NET Standard)?
- Using Dependency Injection with .NET Core Class Library (.NET Standard)
- Localisation that can be read by a portable F# project (Profile 259)
Related Questions in AZURE-DEVOPS
- Pushing to git repository hosted by Visual studio online without entering user name and password
- Generate folder structure of a changeset after checkin in VSO
- OpsHub Visual Studio Online Migration Utility Hangs on Creating Configuration
- Could not write destination file: Access to path 'd:\a\src\...\Web.config' is denied
- hosted build visual studio online
- VSTS Rest API Get WorkItems By Field Value
- xunit.runner.dnx on visual studio online no tests found
- OpsHub User Mapping Error
- Kick off mocha tests in Visual Studio Team Services Build
- Visual Studio Online - Build - There are agents that are capable of running the build, but they are not online
- on-premise TFS to VSO issues using OpsHub 1.2.0.000
- Git tag at the end of build on Visual Studio Online (Build vNext, hosted pool)
- Get Latest Version using command-line from VSO?
- Visual Studio Team Services workspace error
- How to cache credentials for VS online in posh-git?
Related Questions in BUILD-AGENT
- TFS 2015 API remove agent from pool with PowerShell
- Mac Build Agent no longer connecting/building
- TFS 2017 prevent two build agents from restoring the same image with the SCVMM task
- Can we create multiple windows containers which can be used as VSTS build agents from individual Windows Server VM?
- Azure SDK not available on Hosted VS2017 VSTS Build Agent?
- "Job is pending" message in Azure DevOps pipelines
- Delete old self-hosted VSTS build agent _work folders
- NuGet version constraints doesn't work
- How to setup build definition to update IIS settings
- Configuring an azure azagent gives me canonical issue
- Azure Pipeline Agent get triggered but results in old pipeline run
- Teamcity build agent in disconnected state
- How to raise an Azure DevOps Support Ticket
- How to update the Build Agent Manually in Azure DevOps 2020?
- How to grant a TFS build agent access rights to TFS REST API?
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 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