Wie ist der einfachste Weg, meinen Hintergrunddienst mit dem Befehl dotnet in Azure zu starten? Ich habe mich ein wenig in Azure -Funktionen, Webjobs eingereicht, aber ich dachte, es könnte eine einfachere Möglichkeit geben, dies in/nach einer der Aufgaben in meiner YAML -Datei zu tun, in der ich App -Dienst für Azure bereitstelle. Jede Hilfe wäre sehr geschätzt! Build/Release -Prozess.
Code: Select all
# - task: AzureCLI@2
# displayName: 'Run Background Service with dotnet run'
# inputs:
# azureSubscription: $(azureSubscription) # Use the Azure service connection to authenticate
# scriptType: 'bash'
# scriptLocation: 'inlineScript'
# inlineScript: |
# set api1= 'apikey1'
# set api2='apikey2'
# cd $(siteLocation) # Change to the directory containing the app
# dotnet .dll # Run the background service
# workingDirectory: $(siteLocation) # Set the working directory