-
Notifications
You must be signed in to change notification settings - Fork 330
Description
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritise this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritise the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform (and AzureAD Provider) Version
Azure CLI v2.79.0
Terraform v1.11.4
on windows_amd64
azuread = {
source = "hashicorp/azuread"
version = "= 3.1.0"
}
Affected Resource(s)
terraform import 'azuread_application_app_role' 'xyz'
terraform import 'azuread_application_api_access' 'xyz'
Terraform Configuration Files
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorpDebug Output
Panic Output
Expected Behavior
Resource imported into state
Actual Behavior
│ Error: Invalid provider configuration
│
│ Provider "registry.terraform.io/hashicorp/azuread" requires explicit configuration. Add a provider block to the root module and configure the provider's
│ required arguments as described in the provider documentation.
│
╵
╷
│ Error: unable to build authorizer: could not configure AzureCli Authorizer: could not parse Azure CLI version: running Azure CLI: exit status 1: Traceback (most recent call last):
│ File "", line 198, in _run_module_as_main
│ File "", line 88, in _run_code
│ File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/main.py", line 13, in
│ File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/telemetry.py", line 19, in
│ File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/telemetry/init.py", line 9, in
│ File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\portalocker/init.py", line 4, in
│ File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\portalocker/portalocker.py", line 11, in
│ ImportError: DLL load failed while importing win32file: The specified module could not be found.
│
│ with provider["registry.terraform.io/hashicorp/azuread"],
│ on line 0:
│ (source code not available)
│
Steps to Reproduce
- Run
terraform importwith azure cli 2.79.0
Important Factoids
Reverting to azure cli 2.75.0 allows me to import azuread resources to state.