Provide support for resource provider profiles
Stijnc opened this issue · 2 comments
Is your feature request related to a problem? Please describe.
Currently you need to specify the api version for each resource type.
This makes it very cumbersome to maintain and to keep it up to date.
Describe the solution you'd like
A 'provider' resource could append the correct api version to each resource.
Provider resources could follow the concept of profiles in azure stack hub
As per Brian's comment to #16, I do think so, but I would leverage an already existing concept. As edge/ onpremises can easily be included.
As per #364, it would perfectly relate.
Hypotetical example:
Resource provider azure.profile = {
Name = '2019-03-01-hybrid'
}
resource stg 'Microsoft.Storage/storageAccounts= {
name: 'uniquestorage001' // must be globally unique
location: 'eastus'
kind: 'Storage'
sku: {
name: 'Standard_LRS'
}
}
The api version could easily be append to each resource during build based on the already existing profiles and easily eliminates the micro management need in api profiles.
If a resourced referenced a specific api, it supersedes the defined top level profile.