aztfexport icon indicating copy to clipboard operation
aztfexport copied to clipboard

Resource not found

Open pir8g33k opened this issue 2 years ago • 2 comments

i encountered some issue in windows powershell even we set Set-AzContext for the subscription to use and but the aztfy cant locate the right resource, and the result we have multiple subscription.

Error: retrieving Virtual Machine "VM!" (Resource Group "rg_groupname"): compute.VirtualMachinesClient#Get: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="ResourceGroupNotFound" Message="Resource group 'rg_groupname' could not be found."

pir8g33k avatar Aug 01 '22 11:08 pir8g33k

@pir8g33k Currently, the AzureRM provider doesn't support Powershell auth, it only supports Azure CLI auth and the others, please check https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs#authenticating-to-azure for details.

magodo avatar Aug 01 '22 11:08 magodo

I see understood, ok let me try on my Linux or Mac, thanks for the info

pir8g33k avatar Aug 01 '22 12:08 pir8g33k

:wave:

Since we've not heard back here I'm going to close this issue for the moment. Feel free to reopen if still have questions.

magodo avatar Sep 28 '22 03:09 magodo