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

[WIP] New Resource: azurerm_app_service_environment #869

Closed
wants to merge 2 commits into from

Conversation

tombuildsstuff
Copy link
Contributor

@tombuildsstuff tombuildsstuff commented Feb 21, 2018

Note: This resource takes 1.5 up to 30 hours to provision - which makes this challenging to develop.

Opening this to keep track of things - this resource is still under heavy development and will change.

Due to the size of the resource we're focused on Required fields first, and additional Optional fields can be added later.

To Do

  • Resource Implementation
    • Create
    • Update
    • Read
    • Delete
    • Verify the Schema design is correct
    • Resource Timeouts
    • Add Validation
  • Tests
  • Add a Data Source
  • Documentation (incl. "this takes 3-30h+ to provision" notice)

Fixes #438

@tombuildsstuff tombuildsstuff added this to the 1.1.4 milestone Feb 21, 2018
@tombuildsstuff tombuildsstuff self-assigned this Feb 21, 2018
@tombuildsstuff tombuildsstuff force-pushed the app-service-environment branch 7 times, most recently from 196c037 to 5fbe018 Compare February 21, 2018 05:17
@tombuildsstuff tombuildsstuff force-pushed the app-service-environment branch 4 times, most recently from 109a363 to 104e2fe Compare March 7, 2018 23:00
@tombuildsstuff tombuildsstuff force-pushed the app-service-environment branch 3 times, most recently from 4d4329f to b737aeb Compare March 14, 2018 15:32
@tombuildsstuff tombuildsstuff modified the milestones: 1.3.0, 1.4.0 Mar 14, 2018
@tombuildsstuff
Copy link
Contributor Author

From the testing I've been doing here, it might be worth focusing on ASEv2 for the moment, rather than trying to support both v1 and v2 🤔

@Phydeauxman
Copy link

Do you at least have it to a point where your session does not time out before the resource finishes deploying? That is the issue I have been having when trying to deploy using an ARM template resource in my TF config.

@tombuildsstuff
Copy link
Contributor Author

@Phydeauxman unfortunately not, the tests for ASEv1 have been timing out after 30 hours - so I've pushed a change to try running these against ASEv2, and the tests are running atm.

There's a separate fix coming for #937 in the next release or so (unfortunately we missed that bug when upgrading to the latest upgrade to the Azure SDK, since our Template Deployment tests don't take an extended period; although we'll definitely be adding one as part of the fix).

@bajorgensen
Copy link
Contributor

Thumbs up for focusing on v2 for now. While v1 has a different price plan, the benefits of v2 outweighs the potential price savings for v1.
I cannot see anyone deploying v2 going forward.
Keep focusing on getting basic v2 functionality in place!

@bajorgensen
Copy link
Contributor

Depending on #1085 or #1077?
Give us a heads up when it is resolved, we could help QA development.

@tombuildsstuff
Copy link
Contributor Author

@bajorgensen this is a bug in the Azure API (rather than the SDK), so neither of those PR's will have fixed it unfortunately. We've raised this through some internal channels, but we can't proceed with this until that's fixed, unfortunately.

@metacpp metacpp self-requested a review May 2, 2018 21:31
@nycjay01
Copy link

Hi I'm looking to try ASE with terraform. Is this complete?

@tombuildsstuff
Copy link
Contributor Author

@nycjay01 not at this time, we're waiting on the API team to confirm the status of the API unfortunately (since we're seeing provisioning timeouts after 30 hours)

@nycjay01
Copy link

nycjay01 commented May 31, 2018 via email

@tombuildsstuff
Copy link
Contributor Author

@nycjay01 on that note - it's possible to use ARM Templates within Terraform via the azurerm_template_deployment resource to deploy this resource in the interim threading Parameters in both directions (e.g. create the Resource Group with native Terraform, then just create the App Service Environment in an ARM Template; then create the App Service Plan with native Terraform) :)

@Phydeauxman
Copy link

@tombuildsstuff was the issue of App Service Plan returning an undocumented success code ever resolved? Would love to switch my App Service Plan over to native Terraform from an ARM resource

@tombuildsstuff
Copy link
Contributor Author

@tombuildsstuff was the issue of App Service Plan returning an undocumented success code ever resolved? Would love to switch my App Service Plan over to native Terraform from an ARM resource

@Phydeauxman that's being tracked in #917 which will apparently be fixed by v17 of the Azure SDK for Go - I've taken a quick look into that today and we'll be holding off for the moment (I believe [but haven't yet confirmed] that there's a regression in one of the dependencies). Whilst I appreciate it's frustrating - my understanding is that the next SDK upgrade should fix this :)

@tombuildsstuff tombuildsstuff added the upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR label Jun 1, 2018
@Phydeauxman
Copy link

@tombuildsstuff thanks for the update

@rifaterdemsahin
Copy link

any examples for this use case ?

@tombuildsstuff
Copy link
Contributor Author

@rifaterdemsahin not at this time - we're still waiting for the API to be fixed to be able to look into supporting App Service Environments unfortunately.

@tombuildsstuff tombuildsstuff removed the request for review from metacpp July 13, 2018 13:35
@tombuildsstuff
Copy link
Contributor Author

Since this is blocked on a bug in the API - rather than leave this open I'm going to close this PR until we can proceed with this.

@paultyng
Copy link
Contributor

@tombuildsstuff going to reopen this to look in to it again as there has been some renewed interest.

@paultyng paultyng reopened this Oct 22, 2018
@tombuildsstuff tombuildsstuff modified the milestones: Future, Being Sorted, Blocked Oct 25, 2018
@tombuildsstuff
Copy link
Contributor Author

tombuildsstuff commented Dec 14, 2018

Just re-ran the tests for this - the API still fails to provision App Service Environments after 30 hours:

screenshot 2018-12-14 at 10 08 08

Closing this PR since I don't see a path forward for it until this API is fixed

@tombuildsstuff
Copy link
Contributor Author

Upstream API issue: Azure/azure-rest-api-specs#4915

@ghost
Copy link

ghost commented Mar 5, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 5, 2019
@tombuildsstuff tombuildsstuff deleted the app-service-environment branch February 10, 2020 11:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
hashibot/ignore new-resource service/app-service upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: AppService Environments (ASE) Support
6 participants