Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup nightly app restart for SBMTD server #362

Closed
Tracked by #296
thekaveman opened this issue Nov 1, 2023 · 3 comments · Fixed by #366
Closed
Tracked by #296

Setup nightly app restart for SBMTD server #362

thekaveman opened this issue Nov 1, 2023 · 3 comments · Fixed by #366
Assignees
Labels
infrastructure Terraform, Azure, etc.

Comments

@thekaveman
Copy link
Member

thekaveman commented Nov 1, 2023

This is done through the Azure Dev Ops UI, under Pipelines > Releases.

Look at MST for examples.

Maybe in the future we can figure out how to encode this into a YAML file or similar?

@thekaveman thekaveman converted this from a draft issue Nov 1, 2023
@thekaveman thekaveman added this to the SBMTD Mobility Pass milestone Nov 1, 2023
@thekaveman thekaveman added the infrastructure Terraform, Azure, etc. label Nov 1, 2023
@angela-tran angela-tran mentioned this issue Nov 2, 2023
40 tasks
@thekaveman
Copy link
Member Author

@angela-tran I'm not seeing the Releases option under Pipelines for the SBMTD org? I do see it in MST. Could this be a permissions thing?

I'll note that I am an admin of the DevOps project in MST:

image

But not in SBMTD:

image

@angela-tran
Copy link
Member

angela-tran commented Nov 3, 2023

Apparently it's a setting under Pipelines to enable/disable this feature

image

I actually think this might be the point where it makes sense to go ahead and define this as a YAML pipeline, using MST's release pipeline as a reference. The YAML pipeline would have 3 tasks that look something like this (we'd need to variablize it of course):

- task: AzureAppServiceManage@0
  displayName: 'Restart Azure App Service: mst-courtesy-cards-eligibility-server-test'
  inputs:
    azureSubscription: deployer
    Action: 'Restart Azure App Service'
    WebAppName: 'mst-courtesy-cards-eligibility-server-test'

There is more documentation on AzureAppServiceManage here: https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/azure-app-service-manage-v0?view=azure-pipelines

Do you think this makes sense to do now, or should we just focus on getting it set up and working as a release pipeline?

@thekaveman
Copy link
Member Author

I actually think this might be the point where it makes sense to go ahead and define this as a YAML pipeline

That sounds good to me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Terraform, Azure, etc.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants