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
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();
}
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