Skip to content

cloud/azure: create v2 storage accounts (HMS-11442) - #2744

Merged
croissanne merged 1 commit into
osbuild:mainfrom
ondrejbudai:azure-v2-storage
Oct 6, 2026
Merged

croissanne merged 1 commit into
osbuild:mainfrom
ondrejbudai:azure-v2-storage

Conversation

@ondrejbudai

@ondrejbudai ondrejbudai commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Set the storage account kind to StorageV2 when creating accounts for image uploads. Microsoft is retiring v1, so we need to switch.

See
https://learn.microsoft.com/en-us/azure/storage/common/general-purpose-version-1-account-migration-overview

Before the patch:

$ ./image-builder upload /tmp/azure-smoke.vhd --to azure --arch x86_64 --azure-subscription REDACTED --azure-resource-group obudai-demo --azure-image-name funky
[|] Creating storage account images3a74f1e9a2b1411b88...
[1 B / 32.00 MiB] Uploading [>_________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________] 0.00% ? p/s

error: sending the create storage account request failed: PUT https://management.azure.com/subscriptions/REDACTED/resourceGroups/obudai-demo/providers/Microsoft.Storage/storageAccounts/images3a74f1e9a2b1411b88
--------------------------------------------------------------------------------
RESPONSE 400: 400 Bad Request
ERROR CODE: AccountKindNotSupported
--------------------------------------------------------------------------------
{
  "error": {
    "code": "AccountKindNotSupported",
    "message": "Account Kind Storage is not supported."
  }
}
--------------------------------------------------------------------------------

After the patch:

$ ./image-builder upload /tmp/azure-smoke.vhd --to azure --arch x86_64 --azure-subscription REDACTED --azure-resource-group obudai-demo --azure-image-name funky
provider: azure image funky...
image_id: /subscriptions/REDACTED/resourceGroups/obudai-demo/providers/Microsoft.Compute/images/funky______________________________________________________________________________________________________________________________________________________________________________] 0.00% ? p/s

[\] Image registered: /subscriptions/REDACTED/resourceGroups/obudai-demo/providers/Microsoft.Compute/images/funky
$ az storage account list \
      --subscription REDACTED \
      --resource-group obudai-demo \
      --query "[].{name:name,kind:kind,sku:sku.name}" \
      --output table
Name                      Kind       Sku
------------------------  ---------  ------------
images9b60e5257566491db7  StorageV2  Standard_LRS

/jira-epic HMS-11387

JIRA: HMS-11442

@ondrejbudai
ondrejbudai requested a review from croissanne October 6, 2026 13:54
@ondrejbudai
ondrejbudai requested a review from a team as a code owner October 6, 2026 13:54
@schutzbot schutzbot changed the title cloud/azure: create v2 storage accounts cloud/azure: create v2 storage accounts (HMS-11442) Oct 6, 2026
@croissanne
croissanne added this pull request to the merge queue Oct 6, 2026
Merged via the queue into osbuild:main with commit 89ce059 Oct 6, 2026
54 of 56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants