Deploy to Azure–part 23
Create in Azure an AppService infovalutar with InfovalutarRG resource group – can be done like here
https://docs.microsoft.com/en-us/azure/app-service/app-service-web-get-started-dotnet
or from the Azure Portal ( create AppService – I have put Linux with .NET Core 3.0)
Searching how to connect AzureDevOps – the connection should be added from Project Settings (a link at the bottom of the page)
Creating the service InfoValutarServiceConnection on AzureDevops
Saving the yaml files ( with inherent spaces problems)
Now it says the error:
2019-11-28T19:02:29.1210252Z ##[error]Error Code: ERROR_DESTINATION_NOT_REACHABLE More Information: Could not connect to the remote computer ("infovalutar.scm.azurewebsites.net"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE.
Good – but my site is https://infovalutar.azurewebsites.net/ , not infovalutar.scm.azurewebsites.net
Reading documentation from https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-rm-web-app-deployment?view=azure-devops
Changing from
– task: AzureRmWebAppDeployment@3
inputs:
azureSubscription: ‘InfoValutarServiceConnection’
WebAppName: ‘infovalutar’
Package: $(System.ArtifactsDirectory)/*InfoValLinuxX64*.zip
ResourceGroupName: ‘infovalutarRG’
to
– task: AzureRmWebAppDeployment@4
and hoping in magic ( also, put in docker job
dependsOn:
– Build_With_Test
condition: and(succeeded(),false)
in order to not execute docker job now…
And now the deployment works! See yourself at https://infovalutar.azurewebsites.net/
Infovalutar
And one hour passes...(This is the result of 1 hour per day auto-challenge as a full cycle developer for an exchange rates application)
( You can see the sources at https://github.com/ignatandrei/InfoValutar/ )
Leave a Reply