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

Migrate overlays from FunctionApp to LinuxFunctionApp #2510

Open
danielrbradley opened this issue Oct 2, 2024 · 0 comments
Open

Migrate overlays from FunctionApp to LinuxFunctionApp #2510

danielrbradley opened this issue Oct 2, 2024 · 0 comments
Labels
area/mixins Custom mixin code impact/usability Something that impacts users' ability to use the product easily and intuitively kind/enhancement Improvements or new features

Comments

@danielrbradley
Copy link
Member

danielrbradley commented Oct 2, 2024

When using one of the overlays to add an inline callback function, internally it's using the FunctionApp and appservice.Plan which are now deprecated:

// Create an Azure Function to subscribe to the output and print all outputs of the job
outputHub.onEvent("analytics-output", {
    callback: async (context, event) => {
        console.log(JSON.stringify(event));
    },
});
warning: urn:pulumi:dev::azure-ts-stream-analytics::azure:eventhub/eventHub:EventHub$azure:eventhub:EventHubSubscription$azure:appservice/functionApp:FunctionApp::analytics-output verification warning: The `azurerm_function_app` resource has been superseded by the `azurerm_linux_function_app` and `azurerm_windows_function_app` resources. Whilst this resource will continue to be available in the 2.x and 3.x releases it is feature-frozen for compatibility purposes, will no longer receive any updates and will be removed in a future major release of the Azure Provider.

We need to migrate these to use the LinuxFunctionApp and appservice.ServicePlan instead.

Ideally this should migrate without re-creation.

@danielrbradley danielrbradley added area/mixins Custom mixin code impact/usability Something that impacts users' ability to use the product easily and intuitively kind/enhancement Improvements or new features labels Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/mixins Custom mixin code impact/usability Something that impacts users' ability to use the product easily and intuitively kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

1 participant