Closed Yao725 closed 1 year ago
In GuestConfiguration, we have these three resources:
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/{guestConfigurationAssignmentName} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/{guestConfigurationAssignmentName} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/{name}
They extend from different resource but have the same resource type, aka Microsoft.GuestConfiguration/guestConfigurationAssignments. In such case, the generator will find more than one candidate for the list method and the generation will fail.
Microsoft.GuestConfiguration/guestConfigurationAssignments
Fixed in https://github.com/Azure/autorest.csharp/pull/2633
In GuestConfiguration, we have these three resources:
They extend from different resource but have the same resource type, aka
Microsoft.GuestConfiguration/guestConfigurationAssignments
. In such case, the generator will find more than one candidate for the list method and the generation will fail.