Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Creation of ImageReference results in NullReferenceException #45989

Open
DavidStorey opened this issue Sep 16, 2024 · 2 comments
Open

[BUG] Creation of ImageReference results in NullReferenceException #45989

DavidStorey opened this issue Sep 16, 2024 · 2 comments
Labels
Batch Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: 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 Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@DavidStorey
Copy link

Library name and version

Microsoft.Azure.Batch (v 16.3.0)

Describe the bug

Creation of an Azure Batch Pool programmatically fails when the setup of VirtualMachineConfiguration is created.

Calling this line fails in v 16.3.0 and is successful in v 16.2.0

return new ImageReference(
"0001-com-ubuntu-server-jammy",
"canonical",
"22_04-lts",
"latest");

Confirmed the image is available.

Expected behavior

ImageReference successfully created

Actual behavior

NullReferenceException raised here

Microsoft.Azure.Batch.dll!Microsoft.Azure.Batch.ImageReference.Offer.set(string value)
Microsoft.Azure.Batch.dll!Microsoft.Azure.Batch.ImageReference.ImageReference(string offer, string publisher, string sku, string version)

Reproduction Steps

Creation of an Azure Batch Pool programmatically fails when the setup of VirtualMachineConfiguration is created.

Calling this line fails in v 16.3.0 and is successful in v 16.2.0

return new ImageReference(
"0001-com-ubuntu-server-jammy",
"canonical",
"22_04-lts",
"latest");

Confirmed the image is available.

Environment

Azure Batch pool created via a C# Azure Function

@github-actions github-actions bot added Batch Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: 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 Service Attention Workflow: This issue is responsible by Azure service team. labels Sep 16, 2024
Copy link

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dpwatrous @wiboris.

@TovTyvold
Copy link

Having the same issue on a .net6.0 project, breaking change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Batch Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: 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 Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

2 participants