Azure / azure-webjobs-sdk

Azure WebJobs SDK
MIT License
739 stars 358 forks source link

Improve the unsupported type storage account error message when queu/table/blob are not connected to private endpoint for the VNET integrated WebJob e.g. in ASE environment #3068

Open SatishRanjan opened 8 months ago

SatishRanjan commented 8 months ago

Please provide a succinct description of the issue.

Repro steps

Create and ASE (App Service Environment) Create a Queue triggered Web Job using SDK version 2.3.0 Configure the storage account for which Queue service is not connected to private endpoint as primary storage account

Get the following error message: Storage account is of unsupported type 'Blob-Only/ZRS'. Supported types are 'General Purpose'

https://github.com/Azure/azure-webjobs-sdk/blob/v2.x/src/Microsoft.Azure.WebJobs.Host/Storage/IStorageAccountExtensions.cs#L14

Expected behavior

Better error message e.g. storage account in-accessible etc.

Actual behavior

Get the following error message: Storage account is of unsupported type 'Blob-Only/ZRS'. Supported types are 'General Purpose'

Known workarounds

Provide a description of any known workarounds.

Related information

Provide any related information