Azure / Azure/azure-rest-api-specs

Webapp:Connection string type accepted values do not match actual accepted values

Open
#10,333 3 comments 0 reactions 0 assignees View on GitHub
customer-reported needs-team-attention question Service Attention Web Apps
Dominant language
TypeSpec
Stars
3.1k
Forks
6k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

Connection string type.

accepted values: ApiHub, Custom, DocDb, EventHub, MySql, NotificationHub, PostgreSQL, RedisCache, SQLAzure, SQLServer, ServiceBus.

But in the app service configuration connection string types the only accepted values are: MySQL, SQLServer, SQLAzure, PostgreSQL and Custom.

When the type is ServiceBus, IConfiguration.GetConnectionString("Name") could not resolve it in Azure App Service.

Changing the type to Custom allowed IConfiguration.GetConnectionString("Name") to work as usual.

Is this a bug?

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: f2b885be-54f8-23f0-9fff-ec4feb157553
* Version Independent ID: 2ad01dad-e05d-e129-13b6-d1ed09db7086
* Content: [az webapp config connection-string](https://docs.microsoft.com/en-us/cli/azure/webapp/config/connection-string?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/webapp/config/connection-string.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/live/latest/docs-ref-autogen/webapp/config/connection-string.yml)
* Service: **app-service-web**
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

Contributor guide

Open the contributing guide

Research direction

Start with the linked az webapp config connection-string documentation and its content source at latest/docs-ref-autogen/docs/webapp/config/connection-string.yml. Compare the documented accepted values with the App Service configuration behavior described in the issue, especially ServiceBus resolution. Done means the specification and documentation accurately reflect the accepted types and the reported discrepancy is resolved or clearly explained.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
api, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.