question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Nuget official package of Microsoft.Azure.Management.Consumption is not in sync with GitHub code

See original GitHub issue

Library name and version

Microsoft.Azure.Management.Consumption 3.0.2

Describe the bug

The code on the repository (https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/consumption/Microsoft.Azure.Management.Consumption/src/Generated/UsageDetailsOperationsExtensions.cs) contains the scope parameter but the nuget package officially release does not:

Code in GitHub

public static async Task<IPage<UsageDetail>> ListAsync(this IUsageDetailsOperations operations, string scope, string expand = default(string), string filter = default(string), string skiptoken = default(string), int? top = default(int?), string metric = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
	using (var _result = await operations.ListWithHttpMessagesAsync(scope, expand, filter, skiptoken, top, metric, null, cancellationToken).ConfigureAwait(false))
	{
		return _result.Body;
	}
}

SDK:

image

This has been almost 1yr and 4 months since this has been asked by the community here. https://github.com/Azure/azure-sdk-for-net/issues/14602

What’s going on? This needs to be released ASAP . 1yr and 4 months later and the code is not in sync with the current official latest release.

Please advise ASAP.

Expected behavior

The nuget package contains the source code that is shown on the repository.

Actual behavior

The code released in the nuget package does not contains the scope.

Reproduction Steps

in a console

dotnet new console --name Demo
dotnet add package Microsoft.Azure.Management.Consumption --version 3.0.2

In the code:

using Microsoft.Azure.Management.Consumption;
using Microsoft.Rest;

var credentials = new TokenCredentials(string.Empty);
var client = new ConsumptionManagementClient(credentials);
await client.UsageDetails.ListAsync();

intellisense doesn’t show the scope parameter.

Environment

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
DOMZEcommented, May 9, 2022

@tujamg Seems kind of long to release things that are already committed in the main branch…

0reactions
tujamgcommented, May 7, 2022

Consumption cmdlet version update is in our backlog. Will update this issue once we release a new version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft.Azure.Management.Consumption .NET package ...
Hi all, I am trying to use the Microsoft.Azure.Management.Consumption 3.0.2 package to access the usage and consumption data on a Azure ...
Read more >
Unable to find package 'Microsoft.Azure.Management. ...
Following instructions, I get this unable to find package error. Nuget (https://www.nuget.org/packages/Microsoft.Azure.Management.
Read more >
Started getting Microsoft.Azure.SignalR.Management ...
We inspected the NuGet package references and found that we are not referencing Microsoft.Azure.SignalR.Management in our packages list.
Read more >
Upstream sources overview - Azure Artifacts
Upstream sources enable you to manage all of your product's dependencies in a single feed. Publishing all your packages to a single feed...
Read more >
C# package management with NuGet in Visual Studio Code
NuGet is the package manager for .NET. It defines how packages for .NET are created, hosted, and consumed, and provides the tools for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found