stages: - stage: 'DeploytoDev' variables: - group: services displayName: 'Deploy to Dev' jobs: - deployment: environment: Dev strategy: runOnce: deploy: steps: - task: AzurePowerShell@5 displayName: 'Uninstall AzureRm' inputs: azureSubscription: 'xxxxxxx' ScriptType: 'inlineScript' errorActionPreference: 'continue' inline: 'Uninstall-AzureRm' azurePowerShellVersion: 'LatestVersion' - task: DownloadBuildArtifacts@1 displayName: 'Down Build Artifacts' inputs: buildType: 'specific' project: 'xxxxxxxxxx' pipeline: 'xxxx' buildVersionToDownload: 'latest' downloadType: 'specific' downloadPath: '$(System.ArtifactsDirectory)' - task: PublishADFTask@1 displayName: 'Deploy ADF to Instance' inputs: azureSubscription: 'xxxx' ResourceGroupName: 'xxxx' DataFactoryName: 'xxxx' DataFactoryCodePath: '$(System.ArtifactsDirectory)/drop' Location: 'xxxx' CreateNewInstance: false StageCode: 'Dev' PublishMethod: 'AzResource' IncrementalDeployment: false StopStartTriggers: false DeleteNotInSource: false