Blog: Azure DevOps

Azure DevOps: How to update the Azure Function default Host Key in a PowerShell task

January 21, 2019, (updated on January 25, 2019), 2 comments, Software Development

For a recent project I dynamically create new Azure Functions in an Azure DevOps release pipeline. One of the requirements was to automatically update each default Host Key to a given value so that it’s easier to access the newly created HTTP functions. Because there is no easy out-of-the-box API in Azure CLI or Azure PowerShell, I wanted to share the final solution here. To update the default Azure Function Host Key in an Azure PowerShell build/release task, just follow these steps: 1. Create a new “Azure PowerShell” task in your Azure DevOps build or release pipeline 2. Choose an […] Read more...

Tags: , , ,

Use a private Azure DevOps/VSTS NuGet package feed with the .NET Core CLI

July 28, 2018, (updated on October 22, 2018), 1 comment, Software Development

If you have a .NET Core project which references a NuGet package from a private VSTS package feed, you cannot just build the project in CLI because you are not authorized to access the feed: When running dotnet restore, you’ll end up with this error message: error: Response status code does not indicate success: 401 (Unauthorized). To fix this problem, you can register the private NuGet feed with a VSTS personal access token (PAT). This article shows how to do that. 1. Create personal access token (PAT) on VSTS Navigate to your VSTS site, go to the “Security” settings (top […] Read more...

Tags: , , , ,

  Page 1 of 1