_This issue was originally opened by @Quisl as hashicorp/terraform#18683. It was migrated here as a result of the provider split. The original body of the issue is below._
Terraform v0.11.7
+ provider.azurerm v1.7.0
provider "azurerm" {
subscription_id = "CENSORED"
client_id = "CENSORED"
client_secret = "CENSORED"
tenant_id = "CENSORED"
}
resource "azurerm_resource_group" "storage-rg"
{
name = "storage-prd-rg"
location = "West Europe"
tags
{
description = "contains azure resources concerning storage"
}
}
https://gist.github.com/Quisl/c4275d4559e53bc5d982aff1fc733169
I expected Terraform to create a resource group in my Azure Environment.
Terraform stops executing because of a unknown certificate. Error:
terraform initterraform planI am using Debian 9 (stretch) and I sit behind a proxy server which requires me to use the companies CA Certificate for outgoing traffic. However I have added the certificate to my operating system using the
update-ca-certificates
command (curl works).
hey @Quisl
Thanks for opening this issue :)
I've taken a look into this issue and believe there's two parts to fixing this:
Unfortunately I don't have access to a Proxy to verify this patch works as expected behind a proxy with custom authentication - however I can see these requests going through the proxy as expected using Charles Proxy on macOS. Would you be able to pull and build the branch proxy-support and confirm if this fixes your issue? If so there's build instructions in the README
Thanks!
Hi @tombuildsstuff
I had to test it on a different machine as the other one was just a testing VM.
However, it appears to work now!
Thank you ๐
hey @Quisl
Thanks for confirming that - we'll send a PR to update that shortly.
Thanks!
PR: #2133
hi @Quisl
Just to let you know that this has been released as a part of v1.18 of the AzureRM Provider (the full changelog is available here). You can upgrade to this by specifying the version in the provider block (as shown below) and then running terraform init -upgrade
provider "azurerm" {
version = "=1.18.0"
}
Thanks!
Terraform v0.11.10
Still having issue.
Log:
* provider.azurerm: Unable to list provider registration status, it is possible that this is due to invalid credentials or the service principal does not have permission to use the Resource Manager API, Azure error: azure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request to https://management.azure.com/subscriptions/<CENSORED>/providers?api-version=2017-05-10: StatusCode=0 -- Original Error: adal: Failed to execute the refresh request. Error = 'Post https://login.microsoftonline.com/<CENSORED>/oauth2/token?api-version=1.0: dial tcp: lookup login.microsoftonline.com on [fec0:0:0:ffff::1]:53: dial udp [fec0:0:0:ffff::1]:53: connect: invalid argument'
I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error ๐ค ๐ , please reach out to my human friends ๐ [email protected]. Thanks!
Most helpful comment
Hi @tombuildsstuff
I had to test it on a different machine as the other one was just a testing VM.
However, it appears to work now!
Thank you ๐