Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to azure Cloud Platform when running terraform plan #30558

Open
tchatua opened this issue Dec 20, 2024 · 2 comments
Open

Unable to connect to azure Cloud Platform when running terraform plan #30558

tchatua opened this issue Dec 20, 2024 · 2 comments
Assignees
Labels
AAD Account az login/account Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone

Comments

@tchatua
Copy link

tchatua commented Dec 20, 2024

Describe the bug

Unable to connect to azure Cloud Platform when running terraform plan .

When I run 'az login' looks like it does not login on my azure account cloud

I need your help.

Related command

az login

Errors

Select the account you want to log in with. For more information on login with Azure CLI, see https://go.microsoft.com/fwlink/?linkid=2271136

Retrieving tenants and subscriptions for the selection...

[Tenant and subscription selection]

No Subscription name Subscription ID Tenant


[1] * DevOps_on_Azure b08c2b78-8fa5-4437-9ea4-acfc1acfc17b Default Directory
[2] DevOps_on_Azure b10c7869-2df8-4ff4-b7f2-13b07dcf7464 Default Directory
[3] DevSecOps_Training 347f4e4f-527d-40be-b18b-bc414f3e16dd Default Directory

The default is marked with an *; the default tenant is 'Default Directory' and subscription is 'DevOps_on_Azure' (b08c2b78-8fa5-4437-9ea4-acfc1acfc17b).

Select a subscription and tenant (Type a number or Enter for no changes): 1

Tenant: Default Directory
Subscription: DevOps_on_Azure (b08c2b78-8fa5-4437-9ea4-acfc1acfc17b)

[Announcements]
With the new Azure CLI login experience, you can select the subscription you want to use more easily. Learn more about it and its configuration at https://go.microsoft.com/fwlink/?linkid=2271236

If you encounter any problem, please open an issue at https://aka.ms/azclibug

[Warning] The login output has been updated. Please be aware that it no longer displays the full list of available subscriptions by default.

Issue script & Debug output

az login --debug
cli.knack.cli: Command arguments: ['login', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
Enable VT mode.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x0000018EB35332E0>, <function OutputProducer.on_global_arguments at 0x0000018EB36CC040>, <function CLIQuery.on_global_arguments at 0x0000018EB36F1440>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'login': ['azure.cli.command_modules.profile']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: profile 0.005 2 8
cli.azure.cli.core: Total (1) 0.005 2 8
cli.azure.cli.core: Loaded 2 groups, 8 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : login
cli.azure.cli.core: Command table: login
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x0000018EB59B1C60>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\tchat.azure\commands\2024-12-20.01-50-51.login.18004.log'.
az_command_data_logger: command args: login --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x0000018EB59F32E0>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x0000018EB5A616C0>, <function register_cache_arguments..add_cache_arguments at 0x0000018EB5A61800>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x0000018EB5A618A0>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x0000018EB36CC0E0>, <function CLIQuery.handle_query_parameter at 0x0000018EB36F14E0>, <function register_ids_argument..parse_ids_arguments at 0x0000018EB5A61760>]
cli.azure.cli.core.auth.persistence: build_persistence: location='C:\Users\tchat\.azure\msal_token_cache.bin', encrypt=True
cli.azure.cli.core.auth.binary_cache: load: C:\Users\tchat.azure\msal_http_cache.bin
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/organizations
msal.authority: openid_config("https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/organizations/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/organizations/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/{tenantid}/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/organizations/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/organizations/kerberos', 'tenant_region_scope': None, 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? True
msal.application: Falls back to broker._signin_interactively()
cli.azure.cli.core.auth.identity: Select the account you want to log in with. For more information on login with Azure CLI, see https://go.microsoft.com/fwlink/?linkid=2271136
msal.broker: [MSAL:0001] WARNING SetAuthorityUri:78 Initializing authority from URI 'https://login.microsoftonline.com/organizations' without authority type, defaulting to MsSts
msal.broker: [MSAL:0002] INFO SetCorrelationId:258 Set correlation ID: f83224e3-bc93-416b-bcca-e77d7617eb74
msal.broker: [MSAL:0002] INFO ExecuteInteractiveRequest:1159 The original authority is 'https://login.microsoftonline.com/organizations'
msal.broker: [MSAL:0002] WARNING TryNormalizeRealm:2420 No HomeAccountId provided to normalize the realm
msal.broker: [MSAL:0002] INFO ExecuteInteractiveRequest:1170 The normalized realm is ''
msal.broker: [MSAL:0002] INFO ModifyAndValidateAuthParameters:219 Additional query parameter added successfully. Key: '(pii)' Value: '(pii)'
msal.broker: [MSAL:0002] INFO ModifyAndValidateAuthParameters:219 Additional query parameter added successfully. Key: '(pii)' Value: '(pii)'
msal.broker: [MSAL:0002] INFO ModifyAndValidateAuthParameters:243 Authority Realm: organizations
msal.broker: [MSAL:0002] WARNING TryEnqueueMsaDeviceCredentialAcquisitionAndContinue:1052 MsaDeviceOperationProvider is not available. Not attempting to register the device.
msal.broker: [MSAL:0003] WARNING ReturnResponseDueToMissingParameter:693 Attempted to read cache with a non-normalized realm, access token and ID token reads will fail
msal.broker: [MSAL:0003] WARNING ReadAccountById:227 Account id is empty - account not found
msal.broker: [MSAL:0004] WARNING SetAuthorityUri:78 Initializing authority from URI 'https://login.microsoftonline.com/consumers' without authority type, defaulting to MsSts
msal.broker: [MSAL:0004] INFO SetCorrelationId:258 Set correlation ID: f83224e3-bc93-416b-bcca-e77d7617eb74
msal.broker: [MSAL:0003] INFO SetCanonicalRealm:1106 Normalize realm to: 'f8cdef31-a31e-4b4a-93e4-5f571e91255a'
msal.broker: [MSAL:0003] WARNING Parse:350 Failed to parse string of length 0 as JSON, error '(pii)'
msal.broker: [MSAL:0003] WARNING GetJsonObjectFromString:285 JSON string was a '(pii)' (not an object)
msal.broker: [MSAL:0003] INFO LogTelemetryData:422 Printing Telemetry for Correlation ID: f83224e3-bc93-416b-bcca-e77d7617eb74
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: start_time, Value: 2024-12-20T06:50:51.000Z
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: api_name, Value: SignInInteractively
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: was_request_throttled, Value: false
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: authority_type, Value: MSA
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: access_token_expiry_time, Value: 2024-12-20T08:10:49.000Z
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: msal_version, Value: 1.1.0+local
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: client_id, Value: 04b07795-8ddb-461a-bbee-02f9e1bf7b46
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: wam_cached_time_diff, Value: 299
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: correlation_id, Value: f83224e3-bc93-416b-bcca-e77d7617eb74
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: broker_app_used, Value: true
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: stop_time, Value: 2024-12-20T06:50:58.000Z
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: msalruntime_version, Value: 0.16.2
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: original_authority, Value: https://login.microsoftonline.com/organizations
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: request_eligible_for_broker, Value: true
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: additional_query_parameters_count, Value: 2
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: read_token_last_error, Value: missing required parameter
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: auth_flow, Value: Broker
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: ui_event_count, Value: 1
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: wam_telemetry, Value: {"x_ms_clitelem":"1,0,0,,","ui_visible":false,"tenant_id":"f8cdef31-a31e-4b4a-93e4-5f571e91255a","scope":"https://management.core.windows.net//.default offline_access openid profile","redirect_uri":"ms-appx-web://Microsoft.AAD.BrokerPlugin/04b07795-8ddb-461a-bbee-02f9e1bf7b46","provider_id":"https://login.windows.net","idp":"live.com","http_status":200,"http_event_count":1,"http_content_type":"application/json; charset=utf-8","http_content_size":6544,"device_join":"not_joined","correlation_id":"{f83224e3-bc93-416b-bcca-e77d7617eb74}","client_id":"04b07795-8ddb-461a-bbee-02f9e1bf7b46","cache_event_count":0,"broker_version":"10.0.22621.4541","authority":"https://login.microsoftonline.com/organizations","api_error_code":0,"account_join_on_start":"not_joined","account_join_on_end":"not_joined","silent_code":0,"silent_bi_sub_code":0,"silent_message":"","silent_mats":{"x_ms_clitelem":"1,0,0,,","ui_visible":false,"tenant_id":"f8cdef31-a31e-4b4a-93e4-5f571e91255a","scope":"https://management.core.windows.net//.default offline_access openid profile","redirect_uri":"ms-appx-web://Microsoft.AAD.BrokerPlugin/04b07795-8ddb-461a-bbee-02f9e1bf7b46","provider_id":"https://login.windows.net","idp":"live.com","http_status":200,"http_event_count":1,"http_content_type":"application/json; charset=utf-8","http_content_size":6544,"device_join":"not_joined","correlation_id":"{f83224e3-bc93-416b-bcca-e77d7617eb74}","client_id":"04b07795-8ddb-461a-bbee-02f9e1bf7b46","cache_event_count":0,"broker_version":"10.0.22621.4541","authority":"https://login.microsoftonline.com/organizations","api_error_code":0,"account_join_on_start":"not_joined","account_join_on_end":"not_joined"},"silent_status":0,"is_cached":0}
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: transfer_token_request, Value: succeeded
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: transfer_token_added, Value: true
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: tenant_id, Value: f8cdef31-a31e-4b4a-93e4-5f571e91255a
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: normalized_realm, Value: f8cdef31-a31e-4b4a-93e4-5f571e91255a
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: storage_read, Value: DAMD|DAC
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: write_token, Value: AT|ID
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: storage_write, Value: DAT|DID|DAC|DAC
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: is_successful, Value: true
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: authorization_type, Value: Interactive
msal.broker: [MSAL:0003] INFO LogTelemetryData:430 Key: request_duration, Value: 6066
msal.broker: [MSAL:0003] INFO LogTelemetryData:435 Printing Execution Flow:
msal.broker: [MSAL:0003] INFO LogTelemetryData:443 {"t":"646u1","tid":2,"ts":0,"l":2},{"t":"4s7ub","tid":2,"ts":2,"l":2},{"t":"4sufd","tid":2,"ts":2,"s":2,"l":2},{"t":"4swgg","tid":2,"ts":2,"s":1,"l":2},{"t":"4swgf","tid":2,"ts":2,"s":1,"l":2},{"t":"4swgi","tid":3,"ts":2,"s":1,"l":2},{"t":"8dqim","tid":3,"ts":2,"l":2},{"t":"8dqkl","tid":3,"ts":3,"l":2,"a":9,"ie":0},{"t":"54uxe","tid":2,"ts":3,"l":2},{"t":"4wqnh","tid":4,"ts":4584,"l":2},{"t":"8dqmh","tid":4,"ts":4587,"l":2},{"t":"8dqme","tid":4,"ts":4587,"l":2},{"t":"4wqm9","tid":4,"ts":4588,"l":2},{"t":"4o9ak","tid":4,"ts":4588,"l":2},{"t":"4o9ai","tid":4,"ts":4595,"l":2},{"t":"8dql1","tid":4,"ts":5100,"l":2},{"t":"4qopd","tid":4,"ts":5100,"l":2},{"t":"6myt3","tid":4,"ts":5100,"l":2},{"t":"6m026","tid":4,"ts":5100,"l":2},{"t":"6m028","tid":4,"ts":5100,"l":2},{"t":"8dqmj","tid":4,"ts":5100,"l":2},{"t":"4wqm9","tid":4,"ts":5100,"l":2},{"t":"4o9ak","tid":4,"ts":5100,"l":2},{"t":"4o9ai","tid":4,"ts":5101,"l":2},{"t":"8dql1","tid":4,"ts":6021,"l":2},{"t":"4qopb","tid":4,"ts":6021,"l":2},{"t":"8dqkn","tid":4,"ts":6021,"l":2,"a":5,"ie":1},{"t":"8dqko","tid":4,"ts":6021,"l":2,"a":9,"ie":1},{"t":"8dqkr","tid":4,"ts":6021,"l":2},{"t":"4sufd","tid":4,"ts":6021,"s":2,"l":2},{"t":"4swgg","tid":4,"ts":6021,"s":2,"l":2},{"t":"4swgf","tid":4,"ts":6021,"s":1,"l":2},{"t":"4swgi","tid":3,"ts":6021,"s":2,"l":2},{"t":"8b2yn","tid":3,"ts":6021,"l":2},{"t":"8dqlh","tid":3,"ts":6022,"l":2},{"t":"8dqli","tid":3,"ts":6022,"l":2},{"t":"8dqln","tid":3,"ts":6022,"l":2},{"t":"8dqih","tid":3,"ts":6022,"l":2},{"t":"5i16b","tid":3,"ts":6022,"l":2},{"t":"4qnna","tid":3,"ts":6022,"l":2,"a":2,"ie":0},{"t":"4qnm9","tid":3,"ts":6024,"l":2,"a":2,"ie":1},{"t":"4qnnm","tid":3,"ts":6024,"l":2,"a":3,"ie":0},{"t":"4qnnl","tid":3,"ts":6032,"l":2,"a":3,"ie":1},{"t":"4qnng","tid":3,"ts":6032,"l":2,"a":2,"ie":0},{"t":"4qnnf","tid":3,"ts":6034,"l":2,"a":2,"ie":1},{"t":"4qnne","tid":3,"ts":6034,"l":2,"a":3,"ie":0},{"t":"4qnnd","tid":3,"ts":6038,"l":2,"a":3,"ie":1},{"t":"8dqi6","tid":3,"ts":6043,"l":2},{"t":"4qnne","tid":3,"ts":6043,"l":2,"a":3,"ie":0},{"t":"4qnnd","tid":3,"ts":6048,"l":2,"a":3,"ie":1},{"t":"6xuag","tid":3,"ts":6048,"l":2},{"t":"4waym","tid":3,"ts":6048,"l":2},{"t":"4pqvy","tid":3,"ts":6051,"l":2},{"t":"4pqvy","tid":3,"ts":6051,"l":2},{"t":"4pqvy","tid":3,"ts":6051,"l":2}
msal.broker: [MSAL:0003] INFO operator ():264 Attempting to hydrate properties in the home account after a guest SignIn
msal.broker: [MSAL:0003] INFO SetCorrelationId:258 Set correlation ID: f83224e3-bc93-416b-bcca-e77d7617eb74
msal.token_cache: event={
"_account_id": "00000000-0000-0000-d61c-57dd09dda440.9188040d-6c67-4c5b-b112-36a304b66dad.f8cdef31-a31e-4b4a-93e4-5f571e91255a",
"client_id": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
"data": {},
"environment": "login.microsoftonline.com",
"grant_type": "broker",
"response": {
"_account_id": "00000000-0000-0000-d61c-57dd09dda440.9188040d-6c67-4c5b-b112-36a304b66dad.f8cdef31-a31e-4b4a-93e4-5f571e91255a",
"_msalruntime_telemetry": {
"DATA LIMITED": "Full MSALRuntime telemetry not yet implemented",
"api_name": "SignInInteractively",
"broker_app_used": "true",
"client_id": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
"correlation_id": "f83224e3-bc93-416b-bcca-e77d7617eb74",
"is_successful": "true",
"msal_version": "1.1.0+local",
"msalruntime_version": "0.16.2",
"transfer_token_added": "true",
"transfer_token_request": "succeeded"
},
"access_token": "",
"client_info": "eyJ1aWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtZDYxYy01N2RkMDlkZGE0NDAiLCJ1dGlkIjoiOTE4ODA0MGQtNmM2Ny00YzViLWIxMTItMzZhMzA0YjY2ZGFkIiwicHJlZmVycmVkX3VzZXJuYW1lIjoidGNoYXR1YUBob3RtYWlsLmNvbSJ9",
"expires_in": 4791,
"id_token": "
",
"id_token_claims": "********",
"scope": "https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default",
"token_type": "bearer"
},
"scope": [
"https://management.core.windows.net//user_impersonation",
"https://management.core.windows.net//.default"
],
"token_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token"
}
msal.broker: [MSAL:0003] INFO EnqueueBackgroundRequest:1000 The original authority is 'https://login.microsoftonline.com/common'
msal.broker: [MSAL:0003] INFO ModifyAndValidateAuthParameters:219 Additional query parameter added successfully. Key: '(pii)' Value: '(pii)'
msal.broker: [MSAL:0003] INFO ModifyAndValidateAuthParameters:219 Additional query parameter added successfully. Key: '(pii)' Value: '(pii)'
msal.broker: [MSAL:0003] INFO ModifyAndValidateAuthParameters:243 Authority Realm: common
msal.broker: [MSAL:0003] WARNING TryEnqueueMsaDeviceCredentialAcquisitionAndContinue:1052 MsaDeviceOperationProvider is not available. Not attempting to register the device.
msal.broker: [MSAL:0005] INFO SetCanonicalRealm:1106 Normalize realm to: '9188040d-6c67-4c5b-b112-36a304b66dad'
msal.broker: [MSAL:0005] INFO StorageTokenResponse:84 StorageTokenResponse account constructor invoked. This is only expected in Runtime flows
msal.broker: [MSAL:0005] WARNING StorageTokenResponse:15 No credentials found in the cache
msal.broker: [MSAL:0005] WARNING DiscardAccessAndIdTokensIfUnusable:789 No id token found in the cache
msal.broker: [MSAL:0005] WARNING DiscardAccessAndIdTokensIfUnusable:808 No access token found in the cache
msal.broker: [MSAL:0005] WARNING StorageTokenResponse:15 No credentials found in the cache
msal.broker: [MSAL:0005] WARNING GetPlatformPropertiesFromStorage:2013 No account found in cache.

Retrieving tenants and subscriptions for the selection...
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/organizations
msal.authority: openid_config("https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/organizations/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/organizations/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/{tenantid}/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/organizations/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/organizations/kerberos', 'tenant_region_scope': None, 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? True
msal.broker: [MSAL:0005] ERROR ErrorInternalImpl:134 Created an error: 7q6cd, StatusInternal::ApiContractViolation, InternalEvent::None, Error Code 2156265473, Context '(pii)'
msal.broker: [MSAL:0005] INFO LogTelemetryData:422 Printing Telemetry for Correlation ID: f83224e3-bc93-416b-bcca-e77d7617eb74
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: start_time, Value: 2024-12-20T06:50:58.000Z
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: api_name, Value: AcquireTokenSilently
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: was_request_throttled, Value: false
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: authority_type, Value: MSA
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: msal_version, Value: 1.1.0+local
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: api_status_code, Value: StatusInternal::ApiContractViolation
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: client_id, Value: 04b07795-8ddb-461a-bbee-02f9e1bf7b46
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: correlation_id, Value: f83224e3-bc93-416b-bcca-e77d7617eb74
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: broker_app_used, Value: true
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: stop_time, Value: 2024-12-20T06:50:58.000Z
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: all_error_tags, Value: 7q6cd|7q6cd
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: msalruntime_version, Value: 0.16.2
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: original_authority, Value: https://login.microsoftonline.com/common
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: request_eligible_for_broker, Value: true
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: additional_query_parameters_count, Value: 2
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: normalized_realm, Value: 9188040d-6c67-4c5b-b112-36a304b66dad
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: storage_read, Value: DAC|DAMD
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: is_successful, Value: false
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: wam_telemetry, Value: {"correlation_id":"f83224e3-bc93-416b-bcca-e77d7617eb74","wam_blob_version":"1","client_id":"04b07795-8ddb-461a-bbee-02f9e1bf7b46","scope":"scope=https://management.core.windows.net//.default openid profile&telemetry=%2A&api-version=2.0&x-client-src-SKU=%2A&oauth2_batch=%2A&x-client-SKU=%2A&uaid=f83224e3-bc93-416b-bcca-e77d7617eb74&x-client-info=%2A&x-client-OS=%2A&clientid=04b07795-8ddb-461a-bbee-02f9e1bf7b46&x-client-Ver=%2A","authority":"consumers","provider_id":"https://login.microsoft.com","client_binary_version":"45","broker_version":"10.0.22621.4541","wam_account_on_start":"supplied","prompt_behavior":"none","api_error_code":"-2138701823","ui_visible":"false","ui_allowed":"false","server_error_code":"-2138701823","account_id":"","silent_code":0,"silent_bi_sub_code":0,"silent_message":"","silent_status":0,"is_cached":0}
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: auth_flow, Value: Broker
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: broker_error_location, Value: 7q6cd
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: api_error_code, Value: 2156265473
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: api_error_tag, Value: 7q6cd
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: api_error_context, Value: (pii)
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: authorization_type, Value: WindowsIntegratedAuth
msal.broker: [MSAL:0005] INFO LogTelemetryData:430 Key: request_duration, Value: 117
msal.broker: [MSAL:0005] INFO LogTelemetryData:435 Printing Execution Flow:
msal.broker: [MSAL:0005] INFO LogTelemetryData:443 {"t":"4s7uc","tid":3,"ts":0,"l":2},{"t":"4sufd","tid":3,"ts":0,"s":2,"l":2},{"t":"4swgg","tid":3,"ts":0,"s":3,"l":2},{"t":"4swgf","tid":3,"ts":0,"s":1,"l":2},{"t":"4swgi","tid":5,"ts":0,"s":3,"l":2},{"t":"8b2yn","tid":5,"ts":0,"l":2},{"t":"8dqkx","tid":5,"ts":0,"l":2},{"t":"4q2di","tid":5,"ts":1,"l":2},{"t":"4qnng","tid":5,"ts":1,"l":2,"a":2,"ie":0},{"t":"4qnnf","tid":5,"ts":2,"l":2,"a":2,"ie":1},{"t":"8dqit","tid":5,"ts":2,"l":2},{"t":"8b2ht","tid":5,"ts":3,"l":2},{"t":"4qnno","tid":5,"ts":3,"l":2,"a":2,"ie":0},{"t":"4qnnn","tid":5,"ts":3,"l":2,"a":2,"ie":1},{"t":"8dqiq","tid":5,"ts":3,"l":2},{"t":"8dqir","tid":5,"ts":3,"l":2},{"t":"4qwi1","tid":5,"ts":4,"l":2},{"t":"4qnna","tid":5,"ts":4,"l":2,"a":2,"ie":0},{"t":"4qnm9","tid":5,"ts":5,"l":2,"a":2,"ie":1},{"t":"8dqip","tid":5,"ts":5,"l":2},{"t":"4qnno","tid":5,"ts":5,"l":2,"a":2,"ie":0},{"t":"4qnnn","tid":5,"ts":5,"l":2,"a":2,"ie":1},{"t":"8b2hu","tid":5,"ts":5,"l":2},{"t":"5b8fg","tid":5,"ts":11,"l":2},{"t":"8dqk0","tid":5,"ts":11,"l":2},{"t":"4qnng","tid":5,"ts":11,"l":2,"a":2,"ie":0},{"t":"4qnnf","tid":5,"ts":11,"l":2,"a":2,"ie":1},{"t":"8dqjd","tid":5,"ts":11,"l":2},{"t":"694nj","tid":5,"ts":12,"l":2,"a":10,"ie":0},{"t":"4vw1g","tid":5,"ts":12,"l":2},{"t":"4wqnh","tid":5,"ts":12,"l":2},{"t":"4vw1c","tid":5,"ts":16,"l":2},{"t":"4vw1b","tid":5,"ts":16,"l":2},{"t":"4wqnk","tid":5,"ts":16,"l":2},{"t":"4wqni","tid":5,"ts":25,"l":2},{"t":"4ygv8","tid":5,"ts":47,"l":2},{"t":"4ygwa","tid":5,"ts":47,"l":2},{"t":"4yswb","tid":5,"ts":47,"l":2},{"t":"4ygwh","tid":5,"ts":47,"l":2},{"t":"4vw1a","tid":5,"ts":47,"l":2},{"t":"4wqm5","tid":5,"ts":47,"l":2},{"t":"4wqm6","tid":5,"ts":47,"l":2},{"t":"4u9jc","tid":5,"ts":113,"l":2},{"t":"6m025","tid":5,"ts":114,"l":2},{"t":"58yep","tid":5,"ts":114,"l":2},{"t":"694nk","tid":5,"ts":115,"l":2,"a":10,"ie":1},{"t":"8dqk1","tid":5,"ts":115,"l":2},{"t":"646u1","tid":5,"ts":115,"l":2}
cli.azure.cli.core.auth.msal_credentials: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 1be08962-62a4-4a6d-9de9-74dce11fde28
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/tenants?api-version=2022-12-01'
cli.azure.cli.core.sdk.policies: Request method: 'GET'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'c034a127-be9e-11ef-85ca-204ef6a434ae'
cli.azure.cli.core.sdk.policies: 'CommandName': 'login'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.67.0 (MSI) azsdk-python-core/1.31.0 Python/3.12.7 (Windows-11-10.0.22631-SP0)'
cli.azure.cli.core.sdk.policies: 'Authorization': ''
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: This request has no body
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /tenants?api-version=2022-12-01 HTTP/1.1" 200 306
cli.azure.cli.core.sdk.policies: Response status: 200
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Content-Length': '306'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-tenant-reads': '2199'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': 'e326fede-58b1-4168-8564-cf9686d52192'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': 'e326fede-58b1-4168-8564-cf9686d52192'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'EASTUS:20241220T065100Z:e326fede-58b1-4168-8564-cf9686d52192'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: A92452FDE8BB4A669E1BB29E8924A9DF Ref B: MNZ221060610027 Ref C: 2024-12-20T06:51:00Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Fri, 20 Dec 2024 06:51:00 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {"value":[{"id":"/tenants/b71d5fc5-837d-47bc-b0c8-5c45d94b8931","tenantId":"b71d5fc5-837d-47bc-b0c8-5c45d94b8931","countryCode":"US","displayName":"Default Directory","domains":["tchatuahotmail.onmicrosoft.com"],"tenantCategory":"Home","defaultDomain":"tchatuahotmail.onmicrosoft.com","tenantType":"AAD"}]}
cli.azure.cli.core._profile: Finding subscriptions under tenant b71d5fc5-837d-47bc-b0c8-5c45d94b8931 'Default Directory'
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/b71d5fc5-837d-47bc-b0c8-5c45d94b8931
msal.authority: openid_config("https://login.microsoftonline.com/b71d5fc5-837d-47bc-b0c8-5c45d94b8931/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/b71d5fc5-837d-47bc-b0c8-5c45d94b8931/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/b71d5fc5-837d-47bc-b0c8-5c45d94b8931/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/b71d5fc5-837d-47bc-b0c8-5c45d94b8931/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/b71d5fc5-837d-47bc-b0c8-5c45d94b8931/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/b71d5fc5-837d-47bc-b0c8-5c45d94b8931/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/b71d5fc5-837d-47bc-b0c8-5c45d94b8931/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/b71d5fc5-837d-47bc-b0c8-5c45d94b8931/kerberos', 'tenant_region_scope': 'NA', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? True
cli.azure.cli.core.auth.msal_credentials: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 014b822e-7b2d-4bb7-a5ab-a0edb2ce14cd
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions?api-version=2022-12-01'
cli.azure.cli.core.sdk.policies: Request method: 'GET'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'c034a127-be9e-11ef-85ca-204ef6a434ae'
cli.azure.cli.core.sdk.policies: 'CommandName': 'login'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.67.0 (MSI) azsdk-python-core/1.31.0 Python/3.12.7 (Windows-11-10.0.22631-SP0)'
cli.azure.cli.core.sdk.policies: 'Authorization': '
'
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: This request has no body
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions?api-version=2022-12-01 HTTP/1.1" 200 1267
cli.azure.cli.core.sdk.policies: Response status: 200
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Content-Length': '1267'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-tenant-reads': '249'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '804da8ee-03df-47cf-a395-486fcc2fc227'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '804da8ee-03df-47cf-a395-486fcc2fc227'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'EASTUS:20241220T065100Z:804da8ee-03df-47cf-a395-486fcc2fc227'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: 7907D2EEEEC749859BE2E47CA4F6EFD5 Ref B: MNZ221060618009 Ref C: 2024-12-20T06:51:00Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Fri, 20 Dec 2024 06:51:00 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {"value":[{"id":"/subscriptions/347f4e4f-527d-40be-b18b-bc414f3e16dd","authorizationSource":"RoleBased","managedByTenants":[],"subscriptionId":"347f4e4f-527d-40be-b18b-bc414f3e16dd","tenantId":"b71d5fc5-837d-47bc-b0c8-5c45d94b8931","displayName":"DevSecOps_Training","state":"Warned","subscriptionPolicies":{"locationPlacementId":"Public_2014-09-01","quotaId":"PayAsYouGo_2014-09-01","spendingLimit":"Off"}},{"id":"/subscriptions/b08c2b78-8fa5-4437-9ea4-acfc1acfc17b","authorizationSource":"RoleBased","managedByTenants":[],"subscriptionId":"b08c2b78-8fa5-4437-9ea4-acfc1acfc17b","tenantId":"b71d5fc5-837d-47bc-b0c8-5c45d94b8931","displayName":"DevOps_on_Azure","state":"Enabled","subscriptionPolicies":{"locationPlacementId":"Public_2014-09-01","quotaId":"PayAsYouGo_2014-09-01","spendingLimit":"Off"}},{"id":"/subscriptions/b10c7869-2df8-4ff4-b7f2-13b07dcf7464","authorizationSource":"RoleBased","managedByTenants":[],"tags":{"Create_By":"Tchatua"},"subscriptionId":"b10c7869-2df8-4ff4-b7f2-13b07dcf7464","tenantId":"b71d5fc5-837d-47bc-b0c8-5c45d94b8931","displayName":"DevOps_on_Azure","state":"Enabled","subscriptionPolicies":{"locationPlacementId":"Public_2014-09-01","quotaId":"PayAsYouGo_2014-09-01","spendingLimit":"Off"}}],"count":{"type":"Total","value":3}}

[Tenant and subscription selection]

No Subscription name Subscription ID Tenant


[1] * DevOps_on_Azure b08c2b78-8fa5-4437-9ea4-acfc1acfc17b Default Directory
[2] DevOps_on_Azure b10c7869-2df8-4ff4-b7f2-13b07dcf7464 Default Directory
[3] DevSecOps_Training 347f4e4f-527d-40be-b18b-bc414f3e16dd Default Directory

The default is marked with an *; the default tenant is 'Default Directory' and subscription is 'DevOps_on_Azure' (b08c2b78-8fa5-4437-9ea4-acfc1acfc17b).

Select a subscription and tenant (Type a number or Enter for no changes): 1

Tenant: Default Directory
Subscription: DevOps_on_Azure (b08c2b78-8fa5-4437-9ea4-acfc1acfc17b)

[Announcements]
With the new Azure CLI login experience, you can select the subscription you want to use more easily. Learn more about it and its configuration at https://go.microsoft.com/fwlink/?linkid=2271236

If you encounter any problem, please open an issue at https://aka.ms/azclibug

cli.azure.cli.command_modules.profile.custom: [Warning] The login output has been updated. Please be aware that it no longer displays the full list of available subscriptions by default.

cli.knack.cli: Event: CommandInvoker.OnTransformResult [<function _resource_group_transform at 0x0000018EB59F3060>, <function x509_from_base64_to_hex_transform at 0x0000018EB59F3100>]
cli.knack.cli: Event: CommandInvoker.OnFilterResult []
cli.knack.cli: Event: Cli.SuccessfulExecute []
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x0000018EB59B1EE0>]
az_command_data_logger: exit code: 0
cli.main: Command ran in 14.073 seconds (init: 0.378, invoke: 13.695)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 4140 in cache file under C:\Users\tchat.azure\telemetry\20241220015104833
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry_init
.pyc C:\Users\tchat.azure C:\Users\tchat.azure\telemetry\20241220015104833"
telemetry.process: Return from creating process 38152
telemetry.main: Finish creating telemetry upload process.

tchat@247-Tchatua MINGW64 ~/OneDrive/Documents/2025/a02_UDEMY/a06_DevOps_Terraform_Azure/devops-using-azure/a03_Launch_Infrastructure_on_Azure (develop)
$ terraform plan

Planning failed. Terraform encountered an error while generating this plan.


│ Error: Error building AzureRM Client: Error populating Client ID from the Azure CLI: No Authorization Tokens were found - please ensure the Azure CLI is installed and then log-in with az login.

│ with provider["registry.terraform.io/hashicorp/azurerm"],
│ on a01_Provider.tf line 12, in provider "azurerm":
│ 12: provider "azurerm" {

tchat@247-Tchatua MINGW64 ~/OneDrive/Documents/2025/a02_UDEMY/a06_DevOps_Terraform_Azure/devops-using-azure/a03_Launch_Infrastructure_on_Azure (develop)
$

Expected behavior

I want to access to my azure account using terraform

Environment Summary

$ az --version
azure-cli 2.67.0

core 2.67.0
telemetry 1.1.0

Dependencies:
msal 1.31.0
azure-mgmt-resource 23.1.1

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\tchat.azure\cliextensions'

Python (Windows) 3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

No response

@tchatua tchatua added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Dec 20, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Account az login/account labels Dec 20, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Dec 20, 2024

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that AAD labels Dec 20, 2024
@yonzhan yonzhan added this to the Backlog milestone Dec 20, 2024
@yonzhan yonzhan removed the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Dec 20, 2024
@jiasli jiasli mentioned this issue Dec 23, 2024
@jiasli
Copy link
Member

jiasli commented Dec 23, 2024

The log indicates az login is successful, but terraform plan somehow fails to get an access token.

If you directly run az account get-access-token, can Azure CLI return an access token?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AAD Account az login/account Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

3 participants