[BUG] VMSS extension can not be created as part of the VMSS Creation request #32599
Labels
Compute - VMSS
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Mgmt
This issue is related to a management-plane library.
needs-team-attention
This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Library name and version
Azure.ResourceManager.Compute
Describe the bug
When creating new VMSS using CreateOrUpdate method , and adding CustomScript extension as part of VirtualMachinecaleetData object ,
Creation faild
Expected behavior
Successful Creation
Actual behavior
Object reference not set to an instance of an object. , it complians about a null collection,
at Azure.ResourceManager.Compute.VirtualMachineScaleSetExtensionData.Azure.Core.IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
at Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetExtensionProfile.Azure.Core.IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
at Azure.Core.Utf8JsonWriterExtensions.WriteObjectValue(Utf8JsonWriter writer, IUtf8JsonSerializable value)
at Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetVmProfile.Azure.Core.IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
at Azure.ResourceManager.Compute.VirtualMachineScaleSetData.Azure.Core.IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
at Azure.Core.Utf8JsonWriterExtensions.WriteObjectValue(Utf8JsonWriter writer, IUtf8JsonSerializable value)
at Azure.ResourceManager.Compute.VirtualMachineScaleSetsRestOperations.CreateCreateOrUpdateRequest(String virtualMachineScaleSetName, String subscriptionId, String resourceGroupName, VirtualMachineScaleSetData data)
at Azure.ResourceManager.Compute.VirtualMachineScaleSetsRestOperations.d__9.MoveNext()
at Azure.ResourceManager.Compute.VirtualMachineScaleSetCollection.d__5.MoveNext()
Reproduction Steps
Environment
Dotnet
The text was updated successfully, but these errors were encountered: