Amudha Palani

Results comments of Amudha Palani

are there any update on this?

@mscatyao is there any update on this?

data "external" "subscription_quota_check" { depends_on = [null_resource.azlogin] program = [ "az", "vm", "list-usage", "--location", local.cli_location, "--output", "json", "--query", "[?localName=='Total Regional vCPUs'].{Result:currentValue}" ] } I am getting the same error: >...

I tried "[?localName=='Total Regional vCPUs'][0].{Result:currentValue}". Same error. @rquadling Is your suggestion to write to output file and echo it? https://github.com/digitickets/terraform-aws-cli/blob/c3e4fa9d36da0a643b1350316e90969f511dcacc/scripts/awsWithAssumeRole.sh#L51

I tried az vm list-usage --location "Central US" -o json --query "[?localName=='Total Regional vCPUs'].currentValue" [ "412" ] Still same Error: command "az" produced invalid JSON: json: cannot unmarshal array into...

Found it! az vm list-usage --location "Central US" -o json --query "[?localName=='Total Regional vCPUs'].currentValue | [0]" Output: "420"

resource "null_resource" "azlogin" { triggers = { always_run = timestamp() } provisioner "local-exec" { command = "az login --service-principal -u ${var.client_id} -p ${var.client_secret} --tenant ${var.tenant_id}" } } data "external" "subscription_quota_check_cpu"...

We noticed this issue when tag key contains a space, show up in Terraform plan to be added each time, but they are never getting added to the resource. We...

@v-sudkharat Can you please confirm if these tables are ingested into Sentinel?