Skip to content

azurerm_logic_app_standard - fix issue when updating an app with file share mount#31668

Open
ziyeqf wants to merge 5 commits into
hashicorp:mainfrom
ziyeqf:logic_app_storage
Open

azurerm_logic_app_standard - fix issue when updating an app with file share mount#31668
ziyeqf wants to merge 5 commits into
hashicorp:mainfrom
ziyeqf:logic_app_storage

Conversation

@ziyeqf

@ziyeqf ziyeqf commented Feb 4, 2026

Copy link
Copy Markdown
Collaborator

Community Note

  • Please vote on this PR by adding a 👍 reaction to the original PR to help the community and maintainers prioritize for review
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for PR followers and do not help prioritize for review

Description

The endpoint is required for file share mount, however the property is not exposed on rest api spec. remove it from the update payload to avoid override.
rest api side issue: Azure/azure-rest-api-specs#40128

PR Checklist

  • I have followed the guidelines in our Contributing Documentation.
  • I have checked to ensure there aren't other open Pull Requests for the same update/change.
  • I have checked if my changes close any open issues. If so please include appropriate closing keywords below.
  • I have updated/added Documentation as required written in a helpful and kind way to assist users that may be unfamiliar with the resource / data source.
  • I have used a meaningful PR title to help maintainers and other users understand this change and help prevent duplicate work.
    For example: “resource_name_here - description of change e.g. adding property new_property_name_here

Changes to existing Resource / Data Source

  • I have added an explanation of what my changes do and why I'd like you to include them (This may be covered by linking to an issue above, but may benefit from additional explanation).
  • I have written new tests for my resource or datasource changes & updated any relevant documentation.
  • I have successfully run tests with my changes locally. If not, please provide details on testing challenges that prevented you running the tests.
  • (For changes that include a state migration only). I have manually tested the migration path between relevant versions of the provider.

Testing

  • My submission includes Test coverage as described in the Contribution Guide and the tests pass. (if this is not possible for any reason, please include details of why you did or could not add test coverage)
image

the failed one shall be not related to this change.

Change Log

Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.

  • azurerm_logic_app_standard - remove Azurestorageaccount from update payload [GH-00000]

This is a (please select all that apply):

  • Bug Fix
  • New Feature (ie adding a service, resource, or data source)
  • Enhancement
  • Breaking Change

Related Issue(s)

Fixes #31606

AI Assistance Disclosure

  • AI Assisted - This contribution was made by, or with the assistance of, AI/LLMs

Rollback Plan

If a change needs to be reverted, we will publish an updated version of the provider.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

Note

If this PR changes meaningfully during the course of review please update the title and description as required.

@teowa teowa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ziyeqf , LGTM!

@ziyeqf ziyeqf requested a review from gerrytan February 11, 2026 23:26

@gerrytan gerrytan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx @ziyeqf , please add an acctest case that reproduce the mentioned issue (storage account with account_kind "FileStorage")

Comment thread internal/services/logic/logic_app_standard_resource.go
@ziyeqf

ziyeqf commented Mar 16, 2026

Copy link
Copy Markdown
Collaborator Author

@gerrytan gerrytan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for adding the acctest @ziyeqf . There's still acctest failure, but this PR looks good otherwise.

Comment thread internal/services/logic/logic_app_standard_resource.go
storage_account_access_key = azurerm_storage_account.test.primary_access_key
}

resource "azapi_resource_action" "logicapp_storage_config" {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The acctest failed here because you haven't configured azapi provider block

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated, but tbh I'm a bit concerned invovling azapi provider in the test

@ziyeqf

ziyeqf commented Mar 17, 2026

Copy link
Copy Markdown
Collaborator Author
image

@github-actions github-actions Bot closed this May 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This draft pull request is being closed because it has been inactive for 60 days ⏳. This helps our maintainers find and focus on the active contributions.

If you would like to continue working on this, please reopen the pull request and mark it as ready for review when complete. Thank you!

@ziyeqf ziyeqf reopened this May 18, 2026
@ziyeqf ziyeqf marked this pull request as ready for review June 3, 2026 01:47
@ziyeqf ziyeqf requested review from a team, WodansSon and magodo as code owners June 3, 2026 01:47
Comment thread internal/acceptance/testcase.go Outdated
Comment on lines +237 to +240
"azapi": {
VersionConstraint: "=2.8.0",
Source: "azure/azapi",
},

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we please remove this? we should not be adding tests involving azAPI

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

siteEnvelope.SiteConfig = existingSiteConfig

// The `AzureStorageAccounts` received does not contain `endpoint`, which is required in some cases.
// Since we currently do not support this property, we remove it from the payload.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

technically this is

Suggested change
// Since we currently do not support this property, we remove it from the payload.
// Since the rest API spects do not contain this property, we remove it from the payload.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Logic App Standard fails to update with "Endpoint cannot be empty for File Share storage mounts" after upgrading to v4.40.0+

5 participants