can you update an existing storage accounts via Bicep?

O 20 Reputation points
2025-11-27T13:14:12.1866667+00:00

All storage accounts need to be on GPv2 by next year.

I have updated a storage account manually in the portal - my mistake as we manage via Bicep

Now I have a failure on deployment of my resources:

InvalidValuesForRequestParameters","message":"Values for request parameters are invalid: kind."}]}]}]}} 

I can't roll back and our bicep code is set to kind='blobstorage'

updating this to be kind='storageV2' hasn't solved the error

In one environment, the deploy worked but that storage account hasn't been updated to V2 manually, it remains as 'blobstorage' despite what the bicep says. (and the value isn't being set anywhere else)

Which leads me to believe that we can't update an existing storage account via bicep?

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.