79147375

Date: 2024-11-01 08:47:49
Score: 2.5
Natty:
Report link

Build Authorizer for Azure Resource Manager API while using terraform.

Hello vikash sharma, seems like you have already found a workaround for your problem, I am highlighting the approach, please feel free to add your inputs or your workaround solution to this as it may help other folks having similar problem on SO.

The blocker you mentioned that the is due to Azure CLI (az) is not logged in which is mandatory to authenticate.

As GuiFalourd suggested the typo due to extra "A" at the beginning could be causing the error since Terraform might not be able to pick up the correct client ID.

Updated line

ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID_NON_PROD }}

Make sure that all other environment variables (ARM_CLIENT_SECRET, ARM_TENANT_ID, ARM_SUBSCRIPTION_ID, and ARM_ACCESS_KEY) are accurately named and match your secrets configuration.

refer:

https://learn.microsoft.com/en-us/azure/developer/github/connect-from-azure

https://dev.to/willvelida/deploying-to-azure-with-terraform-and-github-actions-5191

Reasons:
  • RegEx Blacklisted phrase (1): I am highlighting the approach, please
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): having similar problem
Posted by: Vinay B