Set Storage Account key using an Arm Template

2019-07-29 06:51发布

问题:

I want to be able to set the access keys of a azure storage account using an ARM Template. I have looked at the quick start templates which don't have any examples. This does not give me any examples: https://docs.microsoft.com/en-us/azure/templates/microsoft.storage/storageaccounts and googling reveals lots of examples of how to get the dynamically generated keys.

回答1:

I want to be able to set the access keys of a azure storage account using an ARM Template.

Simple answer is that you can't. Currently Azure Storage Service generates access keys for you automatically. You can't choose/specify a custom account key.