Java Billing-resource-manager doesn't not work and consumption-resource-manager too #23943
Labels
ARM
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
issue-addressed
Workflow: The Azure SDK team believes it to be addressed and ready to close.
Mgmt
This issue is related to a management-plane library.
I'm trying to get my account billings via Java and I used sample from azure documentation
https://docs.microsoft.com/en-us/java/api/overview/azure/resourcemanager-billing-readme?view=azure-java-preview
But, this solution seems not working, because I see this picture in debug mode:
All entities in the object f are null and innerClient throws this exception :
Method threw 'com.azure.core.http.rest.MissingRequiredAnnotationException' exception. Cannot evaluate com.azure.resourcemanager.billing.implementation.$Proxy5.toString().
Then I tried to use Consumption librariry to get billing data and got exact the same situation:
https://docs.microsoft.com/en-us/java/api/overview/azure/resourcemanager-consumption-readme?view=azure-java-preview
All entities show null and elements from innerObject throw this exception:
Method threw 'com.azure.core.http.rest.MissingRequiredAnnotationException' exception. Cannot evaluate com.azure.resourcemanager.consumption.implementation.$Proxy14.toString()
My pom file:
Any ideas how to fix it? Or what I'm doing wrong?
The text was updated successfully, but these errors were encountered: