-1

I’m trying to deploy infrastructure to Azure Stack Hub using Terraform. My code editor is VS code. How can I connect my Azure Stack Hub account from VS code, so that when I apply the Terraform code, it deploys Infrastructure to my Azure Stack Hub account?

I tried the command "Azure Login" but was taken to the Public Azure webpage to log in. I need the right command that would take me to a particular Azure Stack Hub account.

Daniel Mann
  • 57,011
  • 13
  • 100
  • 120
  • please provide the code you tried – VinayKumarBolli Aug 22 '23 at 08:20
  • I tried the command: Az login but I was taken to the Azure Portal to login, as expected. I need a command that points to the Azure Stack Hub. – Diego K. C. Ugoh Aug 23 '23 at 06:02
  • If you're taken to the Public Azure login webpage, it could be due to previous logins. You can clear the cache and re-run the az login. az cloud register --name --endpoint-resource-manager & az login --environment And then change the provider in the Terraform script Hope this works. – VinayKumarBolli Aug 23 '23 at 23:38

0 Answers0