Skip to content

Recent validation has broken the cli for mapping storage account to webapp #31231

@ksaffarian

Description

@ksaffarian

Describe the bug

Hi
Recent validation #30990 broken the cli.
Issues that I can think of are:

  • The validation assumes the storage account to exist in the same resource group as the webapp. This is not true all the times. The API (and portal) allows for storage account to be in a different resource group. In our case, the storage is not in the same place as the webapp.
  • The validation should only run if the StorageType is set to AzureFile. In our case, we use AzureBlob and the validation is not relevant. However, it is stopping us to mount the storage.

This is quite important as the Azure Pipeline task https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/azure-cli-v2?view=azure-pipelines fetches latest cli and introduces this bug to all customers who are mapping blob containers to webapp.

Related command

az webapp config storage-account add --storage-type AzureBlob .....

Errors

The share '*****' does not exist in the storage account '****'

Issue script & Debug output

N/A

Expected behavior

The command should mount a blob storage or azure file from a different resource group.

Environment Summary

Azure-CLI 2.71.0

Additional context

No response

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botPossible-SolutionService AttentionThis issue is responsible by Azure service team.Similar-IssueWeb Appsaz webappapp-service-generalbugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions