Home > Mobile >  Is there a way to externalize the YYYY-MM-DD apiVersion in a resource declaration?
Is there a way to externalize the YYYY-MM-DD apiVersion in a resource declaration?

Time:07-13

Consider this resource declaration:

resource storageAccountFileSvc 'Microsoft.Storage/storageAccounts/fileServices@2021-09-01' = if (configureIHS) {

I am unfond of having to hard code a specific date into the resource declaration. Is there any way to externalize that? I may have N occurrences of that kind of resource in my bicep files, why must I hard code the same value every time? I must update N occurrences when the arm-ttk tells me my version is too old.

Any ideas?

Thanks,

Ed

CodePudding user response:

As per July 2022 this is not possible.

There are few discussions related on github that you probably want to folow:

  • Related