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

Support for stop Application Gateway #15206

Open
TadeoCloud opened this issue Feb 1, 2022 · 5 comments
Open

Support for stop Application Gateway #15206

TadeoCloud opened this issue Feb 1, 2022 · 5 comments

Comments

@TadeoCloud
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Add ability to shutdown (stop) application gateway resource like AZ CLI does:

az network application-gateway stop -n appgw_name -g rg_name

New or Affected Resource(s)

  • azurerm_application_gateway
@sebader
Copy link
Contributor

sebader commented Feb 4, 2022

Terraform does not control any resources in such a way.

@TadeoCloud
Copy link
Author

I know, but is so useful creating a VM, Appgw or other resources with the initial status set to stopped.

P.ex.:

resource "azurerm_application_gateway" "network" {
  name                = "example-appgateway"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
  
  operational_state    = "stopped"

@tombuildsstuff
Copy link
Contributor

@TadeoCloud what's the use-case for having this stopped at creation time here?

@TadeoCloud
Copy link
Author

@TadeoCloud what's the use-case for having this stopped at creation time here?

Some use-case could be:

  • To have Disaster Recovery Infrastructure deployed (Active/Passive) and ready to be used if there is a problem with the main region but turned off to save costs
  • To save money while preparing to use other infrastructure elements
  • To have some DEV/QA environment turned off since it is only used on certain occasions.

@dsab123
Copy link

dsab123 commented Dec 7, 2022

This would be highly desirable.

To achieve this in the meantime, I'm going to follow this blogpost which details how to deploy a function app that stops the app gateway on a schedule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants