azuredevopslabs | plan smartly , collaborate | DevOps library
kandi X-RAY | azuredevopslabs Summary
kandi X-RAY | azuredevopslabs Summary
Learn how you can plan smartly, collaborate better, and ship faster with a set of modern development services with Azure DevOps.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of azuredevopslabs
azuredevopslabs Key Features
azuredevopslabs Examples and Code Snippets
Community Discussions
Trending Discussions on azuredevopslabs
QUESTION
I am currently finishing up creating a CI dev pipeline and referencing the following documentations
- https://www.andreasnesheim.no/using-vsts-and-github-to-set-up-cicd-for-your-node-js-grunt-application/
- https://www.c-sharpcorner.com/blogs/creating-cicd-pipeline-for-angular-and-hosting-in-azure-app-service
- https://azuredevopslabs.com/labs/vsts/nodejs/
- https://morioh.com/p/0d80bfd8ea27
The references all show that the artifacts get zipped up first, published, then deployed.
However, the project developer told me that after the .NET build, he just copies/deploys the generated AngularOutput artifacts to the Azure app service.
I tested it that way with archive task then publish, and the CI pipeline worked just fine. However, I also tested out publishing directly without prior archiving, and i changed the path to \Bundles\AngularOutput
, and the publish step succeeded just fine and displayed the published artifacts
So the question is, if publish works without zipping/archiving first, then can I directly deploy after the artifacts are published? and if so, what needs to be specified for the Azure App Service Deploy task: Package/Folder
?
If archiving task is necessary/recommended, thats fine, but does that means Azure App Service deploy will automatically extract the zipped up artifact?
...ANSWER
Answered 2021-May-14 at 11:58First of all, yes you can publish your artifact without actually publishing them on the pipeline as artifact. However, if you publish them on the pipeline and have build and release pipelines separate you can redeploy without rebuilding your app.
Also you can always download artifact and publish it manually if where is a need for that. (some development/debug purposes for instance).
And Zip deploy
method
which is used here
Creates a .zip deployment package of the chosen Package or folder and deploys the file contents to the wwwroot folder of the App Service name function app in Azure. This option overwrites all existing contents in the wwwroot folder. For more information, see Zip deployment for Azure Functions.
so if you need to deploy it from the build pipeline you can just put path to your zip file or to folder file where the content is.
And please consider multi stage pipeline where you can separate build and deploy phases among stages. However, in this case you need to publish your artifact as a pipeline artifact. And this pipeline artifact will be downloaded automatically on deployment
job.
QUESTION
I have created a test suite using SpecFlow BDD with Selenium that I am trying to run on the Azure DevOps using Pipelines:
...ANSWER
Answered 2020-Sep-07 at 11:19I think you are missing a task to publish the test results to Azure DevOps. You are executing dotnet test
and get a trx
- file (the result file), but you are not doing anything with it.
You need to use the Publish Test Result
task (https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-test-results?view=azure-devops&tabs=yaml) afterward to upload the trx
- file to Azure DevOps.
Or you change the dotnet test
command to use the Visual Studio Test
task (https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/vstest?view=azure-devops). This tasks makes the upload of the trx
- file automatically.
QUESTION
I have an appsettings.json
file where I want to transform the value located at:
ANSWER
Answered 2020-Apr-28 at 08:00Read a similar question from VSTS (Visual Studio Team Services) and was able to solve it.
Created a Pipeline variable
called ConnectionStrings.DefaultConnection
that had a reference value to my linked variable group.
If my secret was named ConnectionStringsDefaultConnection
I would hook this up as a linked variable and then add $(ConnectionStringsDefaultConnection)
as a value.
Source:
QUESTION
What is the correct way to use a secret variable in a PowerShell script? It may be a pipeline variable, a variable group one, or a variable brought in from an Azure Key Vault task. I have seen in the documentation that it cannot be used in the same way as a normal (non-secret) variable. It says "Instead, we suggest that you map your secrets into environment variables." and "You need to explicitly map secret variables." I have used an environment variable and it works. Are there other ways to do it? This blog says you can use it directly in the script, which seems to contradict the MS document. This one passes the variable as an argument or parameter to the scripts. Does anyone know what is actually going on behind the scenes?
...ANSWER
Answered 2020-Feb-24 at 08:21have seen in the documentation that it cannot be used in the same way as a normal (non-secret) variable. It says "Instead, we suggest that you map your secrets into environment variables." and "You need to explicitly map secret variables."
The doc is misunderstood, it's not saying the secret variables cannot be used in the same way as a normal variable, instead, it says it's not suggested to pass secrets on the command line directly since some operating systems log command line arguments which could cause information leakage as mentioned, and it's suggested to map your secrets into environment variables.
This blog says you can use it directly in the script, which seems to contradict the MS document.
As mentioned above, the secrets can be used directly in the script although it's not suggested, so they are not contradictory.
You can also check the example in the MSDN doc:
QUESTION
I'm new to Azure platform. I'm trying free trial and creating a CI/CD setup for docker by following from the below link.
https://www.azuredevopslabs.com/labs/vstsextend/docker/
I have no issue until setting up build definition. I'm getting below issues when doing changes in the release definition.
when i click on "Authorize" button in azure subscription, I'm getting below issue.
Please let me know what mistake i am doing.
...ANSWER
Answered 2019-Dec-30 at 16:54well, the text says it all. you are trying to create a connection with a name that already exists. you need to call it something different or rename the existing one
QUESTION
I'm using the MyHealthClinic app (https://azuredevopslabs.com/labs/vstsextend/kubernetes/) which is a .NET Core frontend and backend Kubernetes cluster, and deploying to Google Kubernetes Engine trying to connect to a SQL Server VM but receive the following error with CrashLoopBackOff when the pod tries to start up after pulling the image that I pushed:
...ANSWER
Answered 2019-Sep-19 at 19:52After I started looking into why the remote certificate (SQL) was invalid, I changed my connection string to include TrustServerCertificate=True. Since this is a demo environment and I kept Encrypt=True, then it looks like this fixed everything! If anyone thinks bypassing walking the server certs is a bad idea, let me know too.
QUESTION
I'm following this Azure Devops lab: https://azuredevopslabs.com/labs/vstsextend/github-azurepipelines/#task-4-embedding-automated
but when I'm deploying the app, this error appears:
...ANSWER
Answered 2019-Aug-13 at 10:17I've checked the full deployment process from the beginning to end. I also got the same error. It seems that this tutorial creates a new resource group, but did not create a new web-app inside that resource group to deploy. To successfully deploy, create a webapp inside your resource group with the name "githubci-web-" and run the deployment again. It will be successful.
QUESTION
According to the tutorial written on the sonarcloud blog (https://blog.sonarsource.com/integrate-sonarcloud-with-vsts-to-boost-code-quality) and the Azure DevOps lab (https://www.azuredevopslabs.com/labs/vstsextend/sonarcloud/) I should be able to use the outcome of the analysis as a qualitygate for my pullrequest. Unfortunatly this option does not appear when adding a new status policy.
The code has been analysed in the build and in the buildsummary you can see the outcome from sonarcloud.
The last thing I need to do is add it as an approval pull-request requirement.
...ANSWER
Answered 2019-Jun-25 at 05:50After several attempts, changes and other setting tweaks i'd managed to get this operational. I think the problem was solved by creating a new personal access token with only the code read/write option selected. Now the sonarcloud decoration works (providing comments for codesmells) and the status policy is selectable in the branch security policy settings.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install azuredevopslabs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page