You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature
This checklist is used to make sure that common guidelines for a pull request are followed.
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.
Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:
Azure Pipelines successfully started running 3 pipeline(s).
zhoxing-ms
changed the title
{App Service} Fix: #21721: az webapp config storage-account add: Add validation for non-existent FileShare
[App Service] Fix: #21721: az webapp config storage-account add: Add validation for non-existent FileShare
Mar 24, 2025
@seligj95 I want to confirm that the newly added validation will not cause any breaking changes to customers, right?
@zhoxing-ms - I wouldn't consider this a breaking change. This adds validation so that customers won't break their apps. If you add a FileShare that doesn't exist, the app stops working. So I added validation to check if the FileShare exists before it's added to ensure this command won't lead to a broken app. This might break some customer's pipelines if they are adding FileShares that don't exist for some reason, but I think this change is necessary to ensure that doesn't happen. If you think this is a breaking change, please let me know. Otherwise, I think it's fine to proceed.
Hi @seligj95, @zhoxing-ms
This fix has broken our pipeline. We mount a AzureBlob storage type to webapp. However, the command is showing error that share does not exist. I believe the new validation is not taking the mount type into account.
Please revert or publish a fix.
additionally, it is expecting the file share to exist in the same resource group as the app. In our case, the storage account is in a different resource group. So, even if I add a dummy file share to bypass the validation, it does not work.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related command
az webapp config storage-account add
Description
Fixes #21721
Testing Guide
The following command now returns an error when <FILE_SHARE_NAME> doesn't exist in the target storage account:
az webapp config storage-account add -g <RESSOURCE_GROUP_NAME> -n <APP_SERVICE_NAME> --custom-id "test-az-cli" --storage-type AzureFiles --account-name <STORAGE_ACCOUNT_NAME> --share-name <FILE_SHARE_NAME> --access-key <STORAGE_ACCOUNT_ACCESS_KEY> --mount-path <MOUNT_PATH_ON_APP_SERVICE_FS>
History Notes
[Component Name 1] BREAKING CHANGE:
az command a: Make some customer-facing breaking change[Component Name 2]
az command b: Add some customer-facing featureThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.