Skip to content

[BUG] Get latest rolling upgrade status of VMSS failed with System.ArgumentNullException: Value cannot be null. (Parameter 'id') #45613

@sjtufl

Description

@sjtufl

Library name and version

Azure.ResourceManager.Compute 1.5.0

Describe the bug

Use VirtualMachineScaleSetRollingUpgradeResource.GetLatest() to fetch latest rolling upgrade status of a VMSS will always fail with the exception below:

System.ArgumentNullException: Value cannot be null. (Parameter 'id')
   at Azure.ResourceManager.ArmResource..ctor(ArmClient client, ResourceIdentifier id)
   at Azure.ResourceManager.Compute.VirtualMachineScaleSetRollingUpgradeResource..ctor(ArmClient client, ResourceIdentifier id)
   at Azure.ResourceManager.Compute.VirtualMachineScaleSetRollingUpgradeResource.GetAsync(CancellationToken cancellationToken)

Expected behavior

Successful response with VirtualMachineScaleSetRollingUpgradeData in the body.

Actual behavior

Exception is thrown.

Reproduction Steps

Assume vmss is of VirtualMachineScaleSetResource type,

var getRollingUpgradeResult = await vmss.GetVirtualMachineScaleSetRollingUpgrade().GetAsync();

Environment

.NET SDK:
Version: 8.0.400

Runtime Environment:
OS Name: Windows

Metadata

Metadata

Assignees

Labels

Compute - VMSSMgmtThis issue is related to a management package.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions