avm-utl-sku-finder

Azure/avm-utl-sku-finder/azapi

Terraform Module HCL AZAPI ✓ Verified

AVM Terraform utility module for finding valid sku's

Install
module "avm-utl-sku-finder" {
source = "Azure/avm-utl-sku-finder/azapi"
version = "0.3.0"
}
⭐ Source on GitHub 📦 Registry page
README

terraform-azapi-avm-utl-sku-finder This AVM utility module finds sku's that match a set of filter conditions. It is intended to assist with situations where your subscription is restricted for specific sku's and you need to find an available sku that meets your target technical criteria. The module returns a randomly selected sku and the full list of sku's that it was selected from. It has an initial default filter that avoids sku's with any restrictions defined or without any capabilities returned by the sku API's. Because available sku's can vary from day to day for some subscriptions, the module also contains the ability to cache the initial output either as a local file or a storage account blob. This is to retain idempotency for other Terraform modules or resources that consume sku's

Inputs (7)
NameTypeDescriptionDefault
locationstringAzure region where the target skus will be deployed. This is required as the ini required
local_cache_prefixstringIf caching locally, this prefix will be used to help identify the cache file in "local"
resource_typestringThe resource type you want a sku for. Currently only supports VM's, but additio"vm"
vm_filtersobject({ accelerated_netwoThis object is used to filter the available skus based on the criteria you provi{}
cache_resultsboolDo you want to write the single random sku output to a cache file? This is to enfalse
cache_storage_detailsobject({ storage_account_rThis object is used to define the storage account and container where the cache null
enable_telemetryboolThis variable controls whether or not telemetry is enabled for the module. For mtrue
Outputs (3)
resource_id — The resource id of the resource. This is actually a repeat of the sku output to make the linter happ
sku — The randomly selected sku returned from the filtered list of skus.
sku_list — The list of skus returned from the filtered list of skus.
Resources (6)
azurerm_storage_bloblocal_filemodtm_telemetryrandom_integerrandom_stringrandom_uuid
Details
FrameworkTerraform Module
LanguageHCL
Version0.3.0
Cloud AZAPI
★ Stars2
Forks2
Total downloads19.1k
Inputs7
Outputs3
Resources6
Examples3
LicenseMIT
NamespaceAzure
Updated