Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.49k stars 4.81k forks source link

[BUG] Not able to get all apps that use a Hybrid Connection in an App Service Plan #47267

Open JagodaMika opened 3 days ago

JagodaMika commented 3 days ago

Library name and version

Azure.ResourceManager.AppService

Describe the bug

Get all apps that use a Hybrid Connection in an App Service Plan.

Request: GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}/sites<>?api-version=2024-04-01 Response: The requested operation requires an element of type 'String', but the target element has type 'Object'.

Expected behavior

Correctly get all apps that use a Hybrid Connection in an App Service Plan

Actual behavior

Not able to parse request response to expected type (string)

Reproduction Steps

var appServicePlan = await _azureResourceGroup.GetAppServicePlanAsync("someAppServicePlanName"); var appServicePlanResource = await appServicePlan.Value.GetAsync(); var relays = appServicePlanResource.Value.GetHybridConnectionRelaysAsync(); await foreach (var relayOverview in relays) { var relay = await appServicePlanResource.Value.GetAppServicePlanHybridConnectionNamespaceRelayAsync(relayOverview.ServiceBusNamespace, relayOverview.Name); var listOfAppServicesWhichAreUsingHybridConnection = relay.Value.GetWebAppsByHybridConnectionAsync(); }

Environment

No response

github-actions[bot] commented 3 days ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

JagodaMika commented 3 days ago

The same problem for sync method GetWebAppsByHybridConnection()