How to move azure linked VSTS/DevOps to another account/azure subscription
I'm trying to move an VSTS/DevOps instance from one azure environment to another. Is this possible and if it is how do I do this?
So for example Azure environment "A" owned by me has resource group "mydevops" with "devops" instance. I want to move this to Azure environment "B" which is owned by a different person/account perhaps if needed including resource group.
See also questions close to this topic
How to pass a parameter to a logic app invoked from an alert
I have an Alert (Scheduled Query Request) that invokes an Action Group that invokes a Logic App that executes a Function App. The logic app is HTTP triggered. I would like to deploy the same alert on Test, Pre-Prod, Prod and pass the "environment" as a parameter from alert to the action group to the Logic App to the Function App. Is there a way to pass a parameter from the alert? Can you point me to a JSON sample?
JSON Excel Updated Files Fails to Deploy - Azure
I have a very strange issue which I've spent most of the weekend on and made no progress.
I have an json file for deploying OMS, Keyvault and RSV to Azure.
When I use powershell to do the deployment it works fine, no issues.
However once I update the parameters file from using parameters extracted from Excel it throws up the following error:
New-AzureRmResourceGroupDeployment : 22:48:53 - Error: Code=InvalidTemplate; Message=Deployment template validation failed: 'The template parameters 'OMSWrkSpcNme, rsvVltNme, rsvstorageAccountName' in the parameters file are not valid; they are not present in the original template and can therefore not be provided at deployment time. The only supported parameters for this template are 'client, environment, businessUnit, appName, rsvPolicyName, rsvDailyRetentionDurationCount, rsvWeeklyRetentionDurationCount, rsvMonthlyRetentionDurationCount, rsvYearlyRetentionDurationCount'. Please see https://aka.ms/arm-deploy/#parameter-file for usage details.'.
Now I've had these errors before and its a simple error to fix, missing parameters in the template file. However this is the working template JSON file, the only difference is the JSON has been updated using Excel.
I've used Excel in the past to update Parameter JSON files and its never been an issue, however this has me baffled.
The failing JSON Parameter file https://pastebin.com/embed_iframe/EwEk3P1h
The working JSON Parameter file https://pastebin.com/embed_iframe/LshDTxD9
The template file for both https://pastebin.com/embed_iframe/Tmgfw5cs
The only difference I can see between the two parameter files is that the failing one gets updated by excel and the working one I have added all the parameters in.
Thanks in advance.
Selecting a cost efficient Azure account for web server + SQL Server database
I am going to buy a Microsoft Azure account to run a service to clients. There will be a computer unit installed on every client side, and that computer should make secure access to my Azure SQL Server to create new row of data in a table every specific period of time (let's say one row per minute). Also, I need a web server (IIS) to access the SQL Server database, and to display reports to clients through web pages designed based on ASP.NET.
Having my need explained above, I explored pricing tool of Microsoft Azure, and I found it pretty complex, and in the same time pricey, to find a good selection. I need someone to explain how to optimally select options and tools there to pay the minimum amount per month.
dotnet publish succeeds on dev machine, build agent fails, asp.net Netcoreapp2.1/win-x64
On "Hosted VS2017" and self-hosted build agent (Windows Server 2012 R2), running
dotnet publishwith a publish profile specified fails with:
C:\Program Files\dotnet\sdk\2.1.502\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(198,5): error NETSDK1047: Assets file 'C:\agent_work\11\s\\obj\project.assets.json' doesn't have a target for '.NETCoreApp,Version=v2.1/win-x64'. Ensure that restore has run and that you have included 'netcoreapp2.1' in the TargetFrameworks for your project. You may also need to include 'win-x64' in your project's RuntimeIdentifiers.
On local dev server (Win10, VS2017, many different .net sdk versions) when I dotnet publish with the exact same command line, everything works great.
I have tried everything from updating VS2017, installing the exact version of .net core SDK and runtime that we're targeting, updating the build agent, windows updates... Nothing seems to help. I can't understand why it's having different behavior.
The publish profile is a FileSystem profile and has the following two elements specified:
The command line looks this:
"C:\Program Files\dotnet\dotnet.exe" publish "C:\agent\_work\11\s\Source\TheProject.csproj" --no-build -c Release -f netcoreapp2.1 /p:PublishProfile="Publish Release To Filesystem.pubxml" -o C:\agent\_work\11\a\Website -v d
Does anyone have a clue what I can do to get this working?
Devops: Error CS0234: The type or namespace name 'ApplicationModel' does not exist in the namespace 'Windows'
I am trying to set up a build pipeline for the Windows Universal Sample Application File Access Project.
The pipeline is using the Azure Pipelines Hosted VS2017 Image
The solution builds when I run it in VS locally.
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.10586.0" MaxVersionTested="10.0.17763.0" />
When the pipeline tries to build the following error appears in the build task log.
Error CS0234: The type or namespace name 'ApplicationModel' does not exist in the namespace 'Windows' (are you missing an assembly reference?)
The YAML is
resources: - repo: self queue: name: Hosted VS2017 demands: - msbuild - visualstudio steps: - task: NuGetCommand@2 displayName: 'NuGet restore' - task: VSBuild@1 displayName: 'Build solution **\*.sln'
The project looks like this on my machine
And it runs correctly.
I notice the log for the Nuget Restore task has no errors and does report
2018-12-16T01:27:31.8700773Z Checking compatibility for Microsoft.NETCore.Targets.UniversalWindowsPlatform 5.0.0 with UAP,Version=v10.0 (win10-x86-aot). 2018-12-16T01:27:31.8700831Z Checking compatibility for Microsoft.NETCore.Platforms 1.0.0 with UAP,Version=v10.0 (win10-x86-aot). 2018-12-16T01:27:31.8700878Z All packages and projects are compatible with UAP,Version=v10.0 (win10-x86-aot).
Looking at the location on my machine of the SDK
C:\Program Files (x86)\Windows Kits\10\References\10.0.17763.0\Windows.AI.MachineLearning.MachineLearningContract\22.214.171.124
I wonder how Nuget is meant to know about that. Indeed I wonder why it has something about MachineLearning in the path.
I changed versions to 17134 (RS4/1803) instead of 17763 (RS5/1809) as suggested by Stefan Wick MSFT
The errors changed to
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft .AppXPackage.Targets(3218,5): Error APPX0101: A signing key is required in order to package this project. Please specify a PackageCertificateKeyFile or PackageCertificateThumbprint value in the project file. Process 'msbuild.exe' exited with code '1'. SharedContent\Templates\UWPSDKSampleCPP\ARM\Debug\UWPSDKSampleCPP\AppxManifest.xml(0,0): Error APPX0501: Validation error. error C00CE169: App manifest validation error: The app manifest must be valid as per schema: Line 10, Column 13, Reason: 'Microsoft.SDKSamples.$safeprojectname$.CPP' violates pattern constraint of '[-.A-Za-z0-9]+'. The attribute 'Name' with value 'Microsoft.SDKSamples.$safeprojectname$.CPP' failed to parse. Process 'msbuild.exe' exited with code '1'. SharedContent\Templates\UWPSDKSampleCS\bin\ARM\Debug\AppxManifest.xml(0,0): Error APPX0501: Validation error. error C00CE169: App manifest validation error: The app manifest must be valid as per schema: Line 10, Column 13, Reason: 'Microsoft.SDKSamples.$safeprojectname$.CS' violates pattern constraint of '[-.A-Za-z0-9]+'. The attribute 'Name' with value 'Microsoft.SDKSamples.$safeprojectname$.CS' failed to parse. Process 'msbuild.exe' exited with code '1'
Is it possible to install multiple Interactive agents on a single machine?
I know it is possible to install several agents running as a service on a single machine, but Is it possible to install multiple Interactive agents on a single machine?
OS: Win Server 2016 TFS 2018