skip to Main Content

Azure – Terraform conditional attribute setting

resource "azurerm_public_ip" "instance_public_ip" { count = var.assign_public_ip == "true" ? 1 : 0 name = "${var.name}-public-ip" location = var.location resource_group_name = var.resource_group_name allocation_method = "Dynamic" } resource "azurerm_network_interface" "main" { name = "${var.name}-nic" location = var.location resource_group_name = var.resource_group_name ip_configuration…

VIEW QUESTION

Azure Cost Management API is not returning the Blob location

I have a PowerShell script that calls the Microsoft Azure API for cost management. I first call: https://management.azure.com/providers/Microsoft.Billing/enrollmentAccounts/*****5/providers/Microsoft.CostManagement/generateCostDetailsReport?api-version=2023-08-01" This returns a 202 as expected: StatusCode : 202 StatusDescription : Accepted Content : {} RawContent : HTTP/1.1 202 Accepted Pragma: no-cache…

VIEW QUESTION
Back To Top
Search