logo
Tags down

shadow

Can Azure Devops pipelines update Azure App Configuration


By : Tracy
Date : September 17 2020, 04:00 AM
hop of those help? Probably the simplest solution to get this working is by using Azure CLI which you can integrate into your pipelines using the Azure CLI task.
To update, use the az appconfig kv set command.
code :


Share : facebook icon twitter icon

How do I get images to publish to Azure through VSTS (Azure DevOps) build pipelines


By : BluesRhythm
Date : March 29 2020, 07:55 AM
Hope this helps I figured out that if you add the images to the wwroot folder, they are added to your local wwroot but never added to the wwroot folder that's in source control. I went and added the images that were missing to the wwroot/images folder in source control and check them in. Afterwards the publish went through without issue. I tried copy/pasting to the images folder and going right click > add > existing item and both did not recognize the add operation as a pending change in source. Not sure if this is a bug in VS or what.

Can you change the location of azure-pipelines.yaml in Azure Devops?


By : Richard Che So
Date : March 29 2020, 07:55 AM
Any of those help yes you can do that, when creating the build use old UI wizard, if you already have a build in place, you can open its settings>variables (or triggers) and then navigate to the YAML section and under YAML file path you can change it
click the ... on the build edit page next to the Run button:

Deploy console webjob app to azure App service containing a webapi using azure devops pipelines


By : user2838167
Date : March 29 2020, 07:55 AM
around this issue I asked this question a while on github repo azure-webjobs-sdk but the answer didn't help me as well...
i tried the following and it worked out for me:

How do i connect Azure Pipelines in one instance of Azure Devops to an Azure Repo in a separate instance of Azure Devops


By : user3226179
Date : March 29 2020, 07:55 AM
hope this fix your issue
How do i connect Azure Pipelines in one instance of Azure Devops to an Azure Repo in a separate instance of Azure Devops

How to deploy a file outside wwwroot directory in Azure Web App using Azure DevOps Release Pipelines


By : user3459190
Date : March 29 2020, 07:55 AM
I wish this helpful for you You can achieve this using scripts calling Kudu api. You need to add an azure powershell task in your release pipeline and run kudu api. Below scripts is for example.
1, scripts to create a directory components
code :
$WebApp = Get-AzWebApp -Name '<appname>' -ResourceGroupName '<resourcegroupname>'
[xml]$publishingProfile = Get-AzWebAppPublishingProfile -WebApp $WebApp
# Create Base64 authorization header
$username = $publishingProfile.publishData.publishProfile[0].userName
$password = $publishingProfile.publishData.publishProfile[0].userPWD
$base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $username,$password)))

$bodyToPOST = @{  
command = "md components"
                 dir = "D:\home\site"  
}  
# Splat all parameters together in $param  
$param = @{  
            # command REST API url  
            Uri = "https://<appname>.scm.azurewebsites.net/api/command"  
            Headers = @{Authorization=("Basic {0}" -f $base64AuthInfo)}  
            UserAgent = "powershell/1.0"  
            Method = "POST"  
            Body = (ConvertTo-Json $bodyToPOST)  
            ContentType = "application/json"  
}  
# Invoke REST call  
Invoke-RestMethod @param  
$param = @{  
            # zipdeploy api url  
            Uri = "https://<appname>.scm.azurewebsites.net/api/zip/site/components"  
            Headers = @{Authorization=("Basic {0}" -f $base64AuthInfo)}  
            UserAgent = "powershell/1.0"  
            Method = "PUT"  
            # Deployment Artifact Path  
            InFile = "$(System.DefaultWorkingDirectory)\<artifacts_alias>\drop\<artifacts_name>.zip"  
            ContentType = "multipart/form-data"  
}  
# Invoke REST call  
Invoke-RestMethod @param  
shadow
Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk