Set APIM minimum API version (#140)
* Force tsv output from az CLI for existence check * Add min api version to APIM deployment
This commit is contained in:
Родитель
848de2dda4
Коммит
1de765b2b1
|
@ -70,6 +70,9 @@ resource apimName_resource 'Microsoft.ApiManagement/service@2020-12-01' = {
|
|||
virtualNetworkConfiguration: {
|
||||
subnetResourceId: apimSubnetId
|
||||
}
|
||||
apiVersionConstraint: {
|
||||
minApiVersion: '2019-12-01'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -28,6 +28,8 @@ resource "azurerm_api_management" "apim_internal" {
|
|||
|
||||
sku_name = var.skuName
|
||||
|
||||
min_api_version = "2019-12-01"
|
||||
|
||||
virtual_network_configuration {
|
||||
subnet_id = var.apimSubnetId
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@ create_storage_account() {
|
|||
}
|
||||
|
||||
# Validate or create resource group
|
||||
if [[ $(az group exists --name "$TF_BACKEND_RESOURCE_GROUP_NAME") == "false" ]]; then
|
||||
if [[ $(az group exists --name "$TF_BACKEND_RESOURCE_GROUP_NAME" --output tsv) == "false" ]]; then
|
||||
if [[ $auto_confirm == true ]]; then
|
||||
create_resource_group
|
||||
else
|
||||
|
|
Загрузка…
Ссылка в новой задаче