Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Azure by (7k points)
edited by

I've got an app service on Azure. Now, what I want is the Beta version of the app. So created a new app service inside a new Resource Group. It was easy to do the set up and make it running.

But facing issue with deployment. I have created a Service Connection which is linked to my Azure Beta Resource. But I don't see how my new pipelines links to this service connection.

Pipeline is (YAML export)

pool:

  name: Azure Pipelines

  demands: npm

steps:

- task: Npm@1

  displayName: 'npm install'

  inputs:

    verbose: false

- task: Npm@1

  displayName: 'npm build'

  inputs:

    command: custom

    verbose: false

    customCommand: 'run build --scripts-prepend-node-path=auto '

- task: ArchiveFiles@2

  displayName: 'Archive files'

  inputs:

    rootFolderOrFile: dist

    includeRootFolder: false

- task: PublishBuildArtifacts@1

  displayName: 'Publish artifacts: drop'

 The pipeline runs without errors and neither the Beta site nor Prod site gets any of the code changes. Can you guide?

The pipeline runs without errors and neither the Beta site nor Prod site gets any of the code changes. Can you guide?

1 Answer

0 votes
by (31.9k points)

To deploy your app to an Azure resource, you need an Azure Resource Manager service connection first.

Steps:

->Go to project setting of the new Project

->Service connections under Pipelines

->New Service Connection

->Select Azure Resource Manager

Then create a new pipeline to build the Beta service in the new project. Also note if you are using Azure Web App task to deploy your service you need to set the Azure Subscription field to Azure Resource Manager service connection created in the very first step. And you need to set appName field to new azure app service.

Want to become Azure Developer, check out this Microsoft Azure Training.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...