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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Azure Function Import for API Management API resource #4938

Open
markti opened this issue Nov 21, 2019 · 12 comments
Open

Support for Azure Function Import for API Management API resource #4938

markti opened this issue Nov 21, 2019 · 12 comments

Comments

@markti
Copy link
Contributor

markti commented Nov 21, 2019

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

I'd like to be able to import a function into an API Management API resource. I can do this from the portal manually but can't seem to get it to work using the properties on the terraform resource available today.

New or Affected Resource(s)

Terraform v0.12.13

  • provider.azuread v0.6.0
  • provider.azurerm v1.36.0
  • provider.random v2.2.0
  • azurerm_api_management_api

Potential Terraform Configuration

import {
    content_format = "azure_function"
    resource_id = "${azurerm_function_app.MY_FUNCTION_RESOURCE.id}"
  }
@francuesta

This comment has been minimized.

@markti

This comment has been minimized.

@parmarsumit

This comment has been minimized.

@Kazumz
Copy link

Kazumz commented Dec 27, 2020

Nearly one year on and this is still open.

Feels like this is bit of a shortfall! Any alternative advice if this isn't going to be fixed would be appreciated instead.

Thank you.

@avineshwar
Copy link

avineshwar commented Feb 4, 2021

Any update here? Bumping since felt the need for the second time. ARM template would still work but it is extremely gross that I have to handle JSON manually.

@jjdaniel98
Copy link

Is there a way to import from a Function App? I also need this.

@prabhakarreddy1234
Copy link

Is there a way to achieve it using terraform ?

@Zelbazi
Copy link

Zelbazi commented Oct 11, 2021

Any updates about this issue ?

@scoello
Copy link

scoello commented Jan 27, 2022

Any Update?

@freddypage
Copy link

Hello, any update on this?

@fellnerse
Copy link

Are there any plans on including this? How would a solution for this look like if this is a first good issue?

@varneyna
Copy link

A potential workaround while we continue to wait for this feature to be added. If you're creating a new Azure Function you can choose the option for "Http Trigger with OpenAPI" so it creates a spec file. Then you should be able to use that one to import the Function into your APIM Service.

image

If you've got an existing Azure Function that you're trying to add then you can create an OpenAPI spec by adding the Microsoft.Azure.WebJobs.Extensions.OpenApi NuGet Package to the Function project and then use that.

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