Azure / azure-cli

Azure Command-Line Interface
MIT License
4.01k stars 2.98k forks source link

az elastic monitor create-or-update-external-user does not work #27139

Closed thesse1 closed 10 months ago

thesse1 commented 1 year ago

Describe the bug

I have created an instance of Elastic on Azure using Terraform (azurerm_elastic_cloud_elasticsearch), and now I am trying to create external users using az elastic monitor create-or-update-external-user, but it does not work returning an Internal Server Error.

Related command

az elastic monitor create-or-update-external-user

Errors

$ az elastic monitor create-or-update-external-user --monitor-name ericsson-demo-elasticsearch -g ericsson-demo-monitoring-rg --user-name newuser --full-name fullname --password password --email-id email@outlook.com --roles [superuser] --verbose --debug cli.knack.cli: Command arguments: ['elastic', 'monitor', 'create-or-update-external-user', '--monitor-name', 'ericsson-demo-elasticsearch', '-g', 'ericsson-demo-monitoring-rg', '--user-name', 'newuser', '--full-name', 'fullname', '--password', 'password', '--email-id', 'email@outlook.com', '--roles', '[superuser]', '--verbose', '--debug'] cli.knack.cli: init debug log: Enable color in terminal. cli.knack.cli: Event: Cli.PreExecute [] cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x0223C4F0>, <function OutputProducer.on_global_arguments at 0x0243D730>, <function CLIQuery.on_global_arguments at 0x02458388>] cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate [] cli.azure.cli.core: Modules found from index for 'elastic': ['azext_elastic'] cli.azure.cli.core: Loading command modules: cli.azure.cli.core: Name Load Time Groups Commands cli.azure.cli.core: Total (0) 0.000 0 0 cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next'] cli.azure.cli.core: Loading extensions: cli.azure.cli.core: Name Load Time Groups Commands Directory cli.azure.cli.core: elastic 0.147 3 24 C:\Users\THES.azure\cliextensions\elastic cli.azure.cli.core: Total (1) 0.147 3 24
cli.azure.cli.core: Loaded 3 groups, 24 commands. cli.azure.cli.core: Found a match in the command table. cli.azure.cli.core: Raw command : elastic monitor create-or-update-external-user cli.azure.cli.core: Command table: elastic monitor create cli.azure.cli.core: remaining : or-update-external-user cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x0464D580>] cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\THES.azure\commands\2023-08-10.06-57-53.elastic_monitor_create-or-update-external-user.20716.log'. az_command_data_logger: command args: elastic monitor create-or-update-external-user --monitor-name {} -g {} --user-name {} --full-name {} --password {} --email-id {} --roles {} --verbose --debug cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x04675580>] cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad [] cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x04684658>, <function register_cache_arguments..add_cache_arguments at 0x046846E8>] cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded [] cli.knack.cli: Event: CommandInvoker.OnPreParseArgs [] cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x0243D778>, <function CLIQuery.handle_query_parameter at 0x024583D0>, <function register_ids_argument..parse_ids_arguments at 0x046846A0>] az_command_data_logger: extension name: elastic az_command_data_logger: extension version: 1.0.0b1 cli.azure.cli.core.auth.persistence: build_persistence: location='C:\Users\THES\.azure\msal_token_cache.bin', encrypt=True cli.azure.cli.core.auth.binary_cache: load: C:\Users\THES.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: openid_config = {'token_endpoint': 'https://login.microsoftonline.com/d9662eb9-ad98-4e74-a8a2-04ed5d544db6/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/d9662eb9-ad98-4e74-a8a2-04ed5d544db6/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/d9662eb9-ad98-4e74-a8a2-04ed5d544db6/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/d9662eb9-ad98-4e74-a8a2-04ed5d544db6/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/d9662eb9-ad98-4e74-a8a2-04ed5d544db6/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/d9662eb9-ad98-4e74-a8a2-04ed5d544db6/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/d9662eb9-ad98-4e74-a8a2-04ed5d544db6/kerberos', 'tenant_region_scope': 'EU', '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? False cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={} cli.azure.cli.core.auth.msal_authentication: 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: 5af74596-3419-4676-b23d-ed8745777b0c cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/309065ca-a060-4592-8096-b74694126b61/resourceGroups/ericsson-demo-monitoring-rg/providers/Microsoft.Elastic/monitors/ericsson-demo-elasticsearch/createOrUpdateExternalUser?api-version=2023-02-01-preview' cli.azure.cli.core.sdk.policies: Request method: 'POST' cli.azure.cli.core.sdk.policies: Request headers: cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json' cli.azure.cli.core.sdk.policies: 'Accept': 'application/json' cli.azure.cli.core.sdk.policies: 'Content-Length': '127' cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '7684a3db-373a-11ee-8b17-ac74b1298ffa' cli.azure.cli.core.sdk.policies: 'CommandName': 'elastic monitor create-or-update-external-user' cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--monitor-name -g --user-name --full-name --password --email-id --roles --verbose --debug' cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.51.0 (MSI) (AAZ) azsdk-python-core/1.26.0 Python/3.10.10 (Windows-10-10.0.19045-SP0)' cli.azure.cli.core.sdk.policies: 'Authorization': '' cli.azure.cli.core.sdk.policies: Request body: cli.azure.cli.core.sdk.policies: {"emailId": "email@outlook.com", "fullName": "fullname", "password": "password", "roles": ["superuser"], "userName": "newuser"} urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443 urllib3.connectionpool: https://management.azure.com:443 "POST /subscriptions/309065ca-a060-4592-8096-b74694126b61/resourceGroups/ericsson-demo-monitoring-rg/providers/Microsoft.Elastic/monitors/ericsson-demo-elasticsearch/createOrUpdateExternalUser?api-version=2023-02-01-preview HTTP/1.1" 500 105 cli.azure.cli.core.sdk.policies: Response status: 500 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': '105' cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json' cli.azure.cli.core.sdk.policies: 'Expires': '-1' cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-writes': '1199' cli.azure.cli.core.sdk.policies: 'x-ms-providerhub-traffic': 'True' cli.azure.cli.core.sdk.policies: 'x-ms-failure-cause': 'service' 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-ms-request-id': 'adbfe159-cab1-448e-8b30-71240b6c8711' cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '44a35449-25f1-4514-ab70-723d66db2acc' cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'GERMANYWESTCENTRAL:20230810T045754Z:44a35449-25f1-4514-ab70-723d66db2acc' cli.azure.cli.core.sdk.policies: 'Date': 'Thu, 10 Aug 2023 04:57:53 GMT' cli.azure.cli.core.sdk.policies: 'Connection': 'close' cli.azure.cli.core.sdk.policies: Response content: cli.azure.cli.core.sdk.policies: {"error":{"code":"ResourcePostActionFailed","message":"ResourcePostActionFailed: Internal Server Error"}} cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/309065ca-a060-4592-8096-b74694126b61/resourceGroups/ericsson-demo-monitoring-rg/providers/Microsoft.Elastic/monitors/ericsson-demo-elasticsearch/createOrUpdateExternalUser?api-version=2023-02-01-preview' cli.azure.cli.core.sdk.policies: Request method: 'POST' cli.azure.cli.core.sdk.policies: Request headers: cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json' cli.azure.cli.core.sdk.policies: 'Accept': 'application/json' cli.azure.cli.core.sdk.policies: 'Content-Length': '127' cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '7684a3db-373a-11ee-8b17-ac74b1298ffa' cli.azure.cli.core.sdk.policies: 'CommandName': 'elastic monitor create-or-update-external-user' cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--monitor-name -g --user-name --full-name --password --email-id --roles --verbose --debug' cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.51.0 (MSI) (AAZ) azsdk-python-core/1.26.0 Python/3.10.10 (Windows-10-10.0.19045-SP0)' cli.azure.cli.core.sdk.policies: 'Authorization': '' cli.azure.cli.core.sdk.policies: Request body: cli.azure.cli.core.sdk.policies: {"emailId": "email@outlook.com", "fullName": "fullname", "password": "password", "roles": ["superuser"], "userName": "newuser"} urllib3.connectionpool: Resetting dropped connection: management.azure.com urllib3.connectionpool: https://management.azure.com:443 "POST /subscriptions/309065ca-a060-4592-8096-b74694126b61/resourceGroups/ericsson-demo-monitoring-rg/providers/Microsoft.Elastic/monitors/ericsson-demo-elasticsearch/createOrUpdateExternalUser?api-version=2023-02-01-preview HTTP/1.1" 500 105 cli.azure.cli.core.sdk.policies: Response status: 500 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': '105' cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json' cli.azure.cli.core.sdk.policies: 'Expires': '-1' cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-writes': '1198' cli.azure.cli.core.sdk.policies: 'x-ms-providerhub-traffic': 'True' cli.azure.cli.core.sdk.policies: 'x-ms-failure-cause': 'service' 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-ms-request-id': '5528fc98-9888-4e26-a56e-764b41926983' cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': 'f3088299-f2de-4ce5-91d1-bf083b4b6171' cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'GERMANYWESTCENTRAL:20230810T045755Z:f3088299-f2de-4ce5-91d1-bf083b4b6171' cli.azure.cli.core.sdk.policies: 'Date': 'Thu, 10 Aug 2023 04:57:55 GMT' cli.azure.cli.core.sdk.policies: 'Connection': 'close' cli.azure.cli.core.sdk.policies: Response content: cli.azure.cli.core.sdk.policies: {"error":{"code":"ResourcePostActionFailed","message":"ResourcePostActionFailed: Internal Server Error"}} cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/309065ca-a060-4592-8096-b74694126b61/resourceGroups/ericsson-demo-monitoring-rg/providers/Microsoft.Elastic/monitors/ericsson-demo-elasticsearch/createOrUpdateExternalUser?api-version=2023-02-01-preview' cli.azure.cli.core.sdk.policies: Request method: 'POST' cli.azure.cli.core.sdk.policies: Request headers: cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json' cli.azure.cli.core.sdk.policies: 'Accept': 'application/json' cli.azure.cli.core.sdk.policies: 'Content-Length': '127' cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '7684a3db-373a-11ee-8b17-ac74b1298ffa' cli.azure.cli.core.sdk.policies: 'CommandName': 'elastic monitor create-or-update-external-user' cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--monitor-name -g --user-name --full-name --password --email-id --roles --verbose --debug' cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.51.0 (MSI) (AAZ) azsdk-python-core/1.26.0 Python/3.10.10 (Windows-10-10.0.19045-SP0)' cli.azure.cli.core.sdk.policies: 'Authorization': '' cli.azure.cli.core.sdk.policies: Request body: cli.azure.cli.core.sdk.policies: {"emailId": "email@outlook.com", "fullName": "fullname", "password": "password", "roles": ["superuser"], "userName": "newuser"} urllib3.connectionpool: Resetting dropped connection: management.azure.com urllib3.connectionpool: https://management.azure.com:443 "POST /subscriptions/309065ca-a060-4592-8096-b74694126b61/resourceGroups/ericsson-demo-monitoring-rg/providers/Microsoft.Elastic/monitors/ericsson-demo-elasticsearch/createOrUpdateExternalUser?api-version=2023-02-01-preview HTTP/1.1" 500 105 cli.azure.cli.core.sdk.policies: Response status: 500 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': '105' cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json' cli.azure.cli.core.sdk.policies: 'Expires': '-1' cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-writes': '1198' cli.azure.cli.core.sdk.policies: 'x-ms-providerhub-traffic': 'True' cli.azure.cli.core.sdk.policies: 'x-ms-failure-cause': 'service' 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-ms-request-id': '5964e230-8b24-463e-a66d-9239cc678e87' cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': 'cefa6cfb-51c0-4cf9-9d66-e71dd62128c2' cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'GERMANYWESTCENTRAL:20230810T045758Z:cefa6cfb-51c0-4cf9-9d66-e71dd62128c2' cli.azure.cli.core.sdk.policies: 'Date': 'Thu, 10 Aug 2023 04:57:58 GMT' cli.azure.cli.core.sdk.policies: 'Connection': 'close' cli.azure.cli.core.sdk.policies: Response content: cli.azure.cli.core.sdk.policies: {"error":{"code":"ResourcePostActionFailed","message":"ResourcePostActionFailed: Internal Server Error"}} cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/309065ca-a060-4592-8096-b74694126b61/resourceGroups/ericsson-demo-monitoring-rg/providers/Microsoft.Elastic/monitors/ericsson-demo-elasticsearch/createOrUpdateExternalUser?api-version=2023-02-01-preview' cli.azure.cli.core.sdk.policies: Request method: 'POST' cli.azure.cli.core.sdk.policies: Request headers: cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json' cli.azure.cli.core.sdk.policies: 'Accept': 'application/json' cli.azure.cli.core.sdk.policies: 'Content-Length': '127' cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '7684a3db-373a-11ee-8b17-ac74b1298ffa' cli.azure.cli.core.sdk.policies: 'CommandName': 'elastic monitor create-or-update-external-user' cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--monitor-name -g --user-name --full-name --password --email-id --roles --verbose --debug' cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.51.0 (MSI) (AAZ) azsdk-python-core/1.26.0 Python/3.10.10 (Windows-10-10.0.19045-SP0)' cli.azure.cli.core.sdk.policies: 'Authorization': '' cli.azure.cli.core.sdk.policies: Request body: cli.azure.cli.core.sdk.policies: {"emailId": "email@outlook.com", "fullName": "fullname", "password": "password", "roles": ["superuser"], "userName": "newuser"} urllib3.connectionpool: Resetting dropped connection: management.azure.com urllib3.connectionpool: https://management.azure.com:443 "POST /subscriptions/309065ca-a060-4592-8096-b74694126b61/resourceGroups/ericsson-demo-monitoring-rg/providers/Microsoft.Elastic/monitors/ericsson-demo-elasticsearch/createOrUpdateExternalUser?api-version=2023-02-01-preview HTTP/1.1" 500 105 cli.azure.cli.core.sdk.policies: Response status: 500 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': '105' cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json' cli.azure.cli.core.sdk.policies: 'Expires': '-1' cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-writes': '1199' cli.azure.cli.core.sdk.policies: 'x-ms-providerhub-traffic': 'True' cli.azure.cli.core.sdk.policies: 'x-ms-failure-cause': 'service' 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-ms-request-id': '1c3b068f-ca1e-4573-9439-2e20f9930f5a' cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': 'f108df04-efa0-4e6d-9d23-af6469790419' cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'GERMANYWESTCENTRAL:20230810T045803Z:f108df04-efa0-4e6d-9d23-af6469790419' cli.azure.cli.core.sdk.policies: 'Date': 'Thu, 10 Aug 2023 04:58:02 GMT' cli.azure.cli.core.sdk.policies: 'Connection': 'close' cli.azure.cli.core.sdk.policies: Response content: cli.azure.cli.core.sdk.policies: {"error":{"code":"ResourcePostActionFailed","message":"ResourcePostActionFailed: Internal Server Error"}} cli.azure.cli.core.azclierror: Traceback (most recent call last): File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 663, in execute File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 726, in _run_jobs_serially File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 697, in _run_job File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_command.py", line 154, in call File "C:\Users\THES.azure\cliextensions\elastic\azext_elastic\aaz\latest\elastic\monitor_create_or_update_external_user.py", line 33, in _handler self._execute_operations() File "C:\Users\THES.azure\cliextensions\elastic\azext_elastic\aaz\latest\elastic\monitor_create_or_update_external_user.py", line 92, in _execute_operations self.ExternalUserCreateOrUpdate(ctx=self.ctx)() File "C:\Users\THES.azure\cliextensions\elastic\azext_elastic\aaz\latest\elastic\monitor_create_or_update_external_user.py", line 116, in call return self.on_error(session.http_response) File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_operation.py", line 332, in on_error azure.core.exceptions.HttpResponseError: (ResourcePostActionFailed) ResourcePostActionFailed: Internal Server Error Code: ResourcePostActionFailed Message: ResourcePostActionFailed: Internal Server Error

cli.azure.cli.core.azclierror: (ResourcePostActionFailed) ResourcePostActionFailed: Internal Server Error Code: ResourcePostActionFailed Message: ResourcePostActionFailed: Internal Server Error az_command_data_logger: (ResourcePostActionFailed) ResourcePostActionFailed: Internal Server Error Code: ResourcePostActionFailed Message: ResourcePostActionFailed: Internal Server Error cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x0464D6A0>] az_command_data_logger: exit code: 1 cli.main: Command ran in 11.025 seconds (init: 0.293, invoke: 10.733) 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 3673 in cache telemetry.main: Begin creating telemetry upload process. telemetry.process: Creating upload process: "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry__init__.pyc C:\Users\THES.azure" telemetry.process: Return from creating process telemetry.main: Finish creating telemetry upload process.

Issue script & Debug output

$ az elastic monitor create-or-update-external-user --monitor-name ericsson-demo-elasticsearch -g ericsson-demo-monitoring-rg --user-name newuser --full-name fullname --password password --email-id email@outlook.com --roles [superuser] --verbose --debug cli.knack.cli: Command arguments: ['elastic', 'monitor', 'create-or-update-external-user', '--monitor-name', 'ericsson-demo-elasticsearch', '-g', 'ericsson-demo-monitoring-rg', '--user-name', 'newuser', '--full-name', 'fullname', '--password', 'password', '--email-id', 'email@outlook.com', '--roles', '[superuser]', '--verbose', '--debug'] cli.knack.cli: init debug log: Enable color in terminal. cli.knack.cli: Event: Cli.PreExecute [] cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x0223C4F0>, <function OutputProducer.on_global_arguments at 0x0243D730>, <function CLIQuery.on_global_arguments at 0x02458388>] cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate [] cli.azure.cli.core: Modules found from index for 'elastic': ['azext_elastic'] cli.azure.cli.core: Loading command modules: cli.azure.cli.core: Name Load Time Groups Commands cli.azure.cli.core: Total (0) 0.000 0 0 cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next'] cli.azure.cli.core: Loading extensions: cli.azure.cli.core: Name Load Time Groups Commands Directory cli.azure.cli.core: elastic 0.147 3 24 C:\Users\THES.azure\cliextensions\elastic cli.azure.cli.core: Total (1) 0.147 3 24
cli.azure.cli.core: Loaded 3 groups, 24 commands. cli.azure.cli.core: Found a match in the command table. cli.azure.cli.core: Raw command : elastic monitor create-or-update-external-user cli.azure.cli.core: Command table: elastic monitor create cli.azure.cli.core: remaining : or-update-external-user cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x0464D580>] cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\THES.azure\commands\2023-08-10.06-57-53.elastic_monitor_create-or-update-external-user.20716.log'. az_command_data_logger: command args: elastic monitor create-or-update-external-user --monitor-name {} -g {} --user-name {} --full-name {} --password {} --email-id {} --roles {} --verbose --debug cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x04675580>] cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad [] cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x04684658>, <function register_cache_arguments..add_cache_arguments at 0x046846E8>] cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded [] cli.knack.cli: Event: CommandInvoker.OnPreParseArgs [] cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x0243D778>, <function CLIQuery.handle_query_parameter at 0x024583D0>, <function register_ids_argument..parse_ids_arguments at 0x046846A0>] az_command_data_logger: extension name: elastic az_command_data_logger: extension version: 1.0.0b1 cli.azure.cli.core.auth.persistence: build_persistence: location='C:\Users\THES\.azure\msal_token_cache.bin', encrypt=True cli.azure.cli.core.auth.binary_cache: load: C:\Users\THES.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: openid_config = {'token_endpoint': 'https://login.microsoftonline.com/d9662eb9-ad98-4e74-a8a2-04ed5d544db6/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/d9662eb9-ad98-4e74-a8a2-04ed5d544db6/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/d9662eb9-ad98-4e74-a8a2-04ed5d544db6/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/d9662eb9-ad98-4e74-a8a2-04ed5d544db6/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/d9662eb9-ad98-4e74-a8a2-04ed5d544db6/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/d9662eb9-ad98-4e74-a8a2-04ed5d544db6/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/d9662eb9-ad98-4e74-a8a2-04ed5d544db6/kerberos', 'tenant_region_scope': 'EU', '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? False cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={} cli.azure.cli.core.auth.msal_authentication: 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: 5af74596-3419-4676-b23d-ed8745777b0c cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/309065ca-a060-4592-8096-b74694126b61/resourceGroups/ericsson-demo-monitoring-rg/providers/Microsoft.Elastic/monitors/ericsson-demo-elasticsearch/createOrUpdateExternalUser?api-version=2023-02-01-preview' cli.azure.cli.core.sdk.policies: Request method: 'POST' cli.azure.cli.core.sdk.policies: Request headers: cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json' cli.azure.cli.core.sdk.policies: 'Accept': 'application/json' cli.azure.cli.core.sdk.policies: 'Content-Length': '127' cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '7684a3db-373a-11ee-8b17-ac74b1298ffa' cli.azure.cli.core.sdk.policies: 'CommandName': 'elastic monitor create-or-update-external-user' cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--monitor-name -g --user-name --full-name --password --email-id --roles --verbose --debug' cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.51.0 (MSI) (AAZ) azsdk-python-core/1.26.0 Python/3.10.10 (Windows-10-10.0.19045-SP0)' cli.azure.cli.core.sdk.policies: 'Authorization': '' cli.azure.cli.core.sdk.policies: Request body: cli.azure.cli.core.sdk.policies: {"emailId": "email@outlook.com", "fullName": "fullname", "password": "password", "roles": ["superuser"], "userName": "newuser"} urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443 urllib3.connectionpool: https://management.azure.com:443 "POST /subscriptions/309065ca-a060-4592-8096-b74694126b61/resourceGroups/ericsson-demo-monitoring-rg/providers/Microsoft.Elastic/monitors/ericsson-demo-elasticsearch/createOrUpdateExternalUser?api-version=2023-02-01-preview HTTP/1.1" 500 105 cli.azure.cli.core.sdk.policies: Response status: 500 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': '105' cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json' cli.azure.cli.core.sdk.policies: 'Expires': '-1' cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-writes': '1199' cli.azure.cli.core.sdk.policies: 'x-ms-providerhub-traffic': 'True' cli.azure.cli.core.sdk.policies: 'x-ms-failure-cause': 'service' 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-ms-request-id': 'adbfe159-cab1-448e-8b30-71240b6c8711' cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '44a35449-25f1-4514-ab70-723d66db2acc' cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'GERMANYWESTCENTRAL:20230810T045754Z:44a35449-25f1-4514-ab70-723d66db2acc' cli.azure.cli.core.sdk.policies: 'Date': 'Thu, 10 Aug 2023 04:57:53 GMT' cli.azure.cli.core.sdk.policies: 'Connection': 'close' cli.azure.cli.core.sdk.policies: Response content: cli.azure.cli.core.sdk.policies: {"error":{"code":"ResourcePostActionFailed","message":"ResourcePostActionFailed: Internal Server Error"}} cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/309065ca-a060-4592-8096-b74694126b61/resourceGroups/ericsson-demo-monitoring-rg/providers/Microsoft.Elastic/monitors/ericsson-demo-elasticsearch/createOrUpdateExternalUser?api-version=2023-02-01-preview' cli.azure.cli.core.sdk.policies: Request method: 'POST' cli.azure.cli.core.sdk.policies: Request headers: cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json' cli.azure.cli.core.sdk.policies: 'Accept': 'application/json' cli.azure.cli.core.sdk.policies: 'Content-Length': '127' cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '7684a3db-373a-11ee-8b17-ac74b1298ffa' cli.azure.cli.core.sdk.policies: 'CommandName': 'elastic monitor create-or-update-external-user' cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--monitor-name -g --user-name --full-name --password --email-id --roles --verbose --debug' cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.51.0 (MSI) (AAZ) azsdk-python-core/1.26.0 Python/3.10.10 (Windows-10-10.0.19045-SP0)' cli.azure.cli.core.sdk.policies: 'Authorization': '' cli.azure.cli.core.sdk.policies: Request body: cli.azure.cli.core.sdk.policies: {"emailId": "email@outlook.com", "fullName": "fullname", "password": "password", "roles": ["superuser"], "userName": "newuser"} urllib3.connectionpool: Resetting dropped connection: management.azure.com urllib3.connectionpool: https://management.azure.com:443 "POST /subscriptions/309065ca-a060-4592-8096-b74694126b61/resourceGroups/ericsson-demo-monitoring-rg/providers/Microsoft.Elastic/monitors/ericsson-demo-elasticsearch/createOrUpdateExternalUser?api-version=2023-02-01-preview HTTP/1.1" 500 105 cli.azure.cli.core.sdk.policies: Response status: 500 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': '105' cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json' cli.azure.cli.core.sdk.policies: 'Expires': '-1' cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-writes': '1198' cli.azure.cli.core.sdk.policies: 'x-ms-providerhub-traffic': 'True' cli.azure.cli.core.sdk.policies: 'x-ms-failure-cause': 'service' 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-ms-request-id': '5528fc98-9888-4e26-a56e-764b41926983' cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': 'f3088299-f2de-4ce5-91d1-bf083b4b6171' cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'GERMANYWESTCENTRAL:20230810T045755Z:f3088299-f2de-4ce5-91d1-bf083b4b6171' cli.azure.cli.core.sdk.policies: 'Date': 'Thu, 10 Aug 2023 04:57:55 GMT' cli.azure.cli.core.sdk.policies: 'Connection': 'close' cli.azure.cli.core.sdk.policies: Response content: cli.azure.cli.core.sdk.policies: {"error":{"code":"ResourcePostActionFailed","message":"ResourcePostActionFailed: Internal Server Error"}} cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/309065ca-a060-4592-8096-b74694126b61/resourceGroups/ericsson-demo-monitoring-rg/providers/Microsoft.Elastic/monitors/ericsson-demo-elasticsearch/createOrUpdateExternalUser?api-version=2023-02-01-preview' cli.azure.cli.core.sdk.policies: Request method: 'POST' cli.azure.cli.core.sdk.policies: Request headers: cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json' cli.azure.cli.core.sdk.policies: 'Accept': 'application/json' cli.azure.cli.core.sdk.policies: 'Content-Length': '127' cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '7684a3db-373a-11ee-8b17-ac74b1298ffa' cli.azure.cli.core.sdk.policies: 'CommandName': 'elastic monitor create-or-update-external-user' cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--monitor-name -g --user-name --full-name --password --email-id --roles --verbose --debug' cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.51.0 (MSI) (AAZ) azsdk-python-core/1.26.0 Python/3.10.10 (Windows-10-10.0.19045-SP0)' cli.azure.cli.core.sdk.policies: 'Authorization': '' cli.azure.cli.core.sdk.policies: Request body: cli.azure.cli.core.sdk.policies: {"emailId": "email@outlook.com", "fullName": "fullname", "password": "password", "roles": ["superuser"], "userName": "newuser"} urllib3.connectionpool: Resetting dropped connection: management.azure.com urllib3.connectionpool: https://management.azure.com:443 "POST /subscriptions/309065ca-a060-4592-8096-b74694126b61/resourceGroups/ericsson-demo-monitoring-rg/providers/Microsoft.Elastic/monitors/ericsson-demo-elasticsearch/createOrUpdateExternalUser?api-version=2023-02-01-preview HTTP/1.1" 500 105 cli.azure.cli.core.sdk.policies: Response status: 500 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': '105' cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json' cli.azure.cli.core.sdk.policies: 'Expires': '-1' cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-writes': '1198' cli.azure.cli.core.sdk.policies: 'x-ms-providerhub-traffic': 'True' cli.azure.cli.core.sdk.policies: 'x-ms-failure-cause': 'service' 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-ms-request-id': '5964e230-8b24-463e-a66d-9239cc678e87' cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': 'cefa6cfb-51c0-4cf9-9d66-e71dd62128c2' cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'GERMANYWESTCENTRAL:20230810T045758Z:cefa6cfb-51c0-4cf9-9d66-e71dd62128c2' cli.azure.cli.core.sdk.policies: 'Date': 'Thu, 10 Aug 2023 04:57:58 GMT' cli.azure.cli.core.sdk.policies: 'Connection': 'close' cli.azure.cli.core.sdk.policies: Response content: cli.azure.cli.core.sdk.policies: {"error":{"code":"ResourcePostActionFailed","message":"ResourcePostActionFailed: Internal Server Error"}} cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/309065ca-a060-4592-8096-b74694126b61/resourceGroups/ericsson-demo-monitoring-rg/providers/Microsoft.Elastic/monitors/ericsson-demo-elasticsearch/createOrUpdateExternalUser?api-version=2023-02-01-preview' cli.azure.cli.core.sdk.policies: Request method: 'POST' cli.azure.cli.core.sdk.policies: Request headers: cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json' cli.azure.cli.core.sdk.policies: 'Accept': 'application/json' cli.azure.cli.core.sdk.policies: 'Content-Length': '127' cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '7684a3db-373a-11ee-8b17-ac74b1298ffa' cli.azure.cli.core.sdk.policies: 'CommandName': 'elastic monitor create-or-update-external-user' cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--monitor-name -g --user-name --full-name --password --email-id --roles --verbose --debug' cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.51.0 (MSI) (AAZ) azsdk-python-core/1.26.0 Python/3.10.10 (Windows-10-10.0.19045-SP0)' cli.azure.cli.core.sdk.policies: 'Authorization': '' cli.azure.cli.core.sdk.policies: Request body: cli.azure.cli.core.sdk.policies: {"emailId": "email@outlook.com", "fullName": "fullname", "password": "password", "roles": ["superuser"], "userName": "newuser"} urllib3.connectionpool: Resetting dropped connection: management.azure.com urllib3.connectionpool: https://management.azure.com:443 "POST /subscriptions/309065ca-a060-4592-8096-b74694126b61/resourceGroups/ericsson-demo-monitoring-rg/providers/Microsoft.Elastic/monitors/ericsson-demo-elasticsearch/createOrUpdateExternalUser?api-version=2023-02-01-preview HTTP/1.1" 500 105 cli.azure.cli.core.sdk.policies: Response status: 500 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': '105' cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json' cli.azure.cli.core.sdk.policies: 'Expires': '-1' cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-writes': '1199' cli.azure.cli.core.sdk.policies: 'x-ms-providerhub-traffic': 'True' cli.azure.cli.core.sdk.policies: 'x-ms-failure-cause': 'service' 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-ms-request-id': '1c3b068f-ca1e-4573-9439-2e20f9930f5a' cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': 'f108df04-efa0-4e6d-9d23-af6469790419' cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'GERMANYWESTCENTRAL:20230810T045803Z:f108df04-efa0-4e6d-9d23-af6469790419' cli.azure.cli.core.sdk.policies: 'Date': 'Thu, 10 Aug 2023 04:58:02 GMT' cli.azure.cli.core.sdk.policies: 'Connection': 'close' cli.azure.cli.core.sdk.policies: Response content: cli.azure.cli.core.sdk.policies: {"error":{"code":"ResourcePostActionFailed","message":"ResourcePostActionFailed: Internal Server Error"}} cli.azure.cli.core.azclierror: Traceback (most recent call last): File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 663, in execute File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 726, in _run_jobs_serially File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 697, in _run_job File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_command.py", line 154, in call File "C:\Users\THES.azure\cliextensions\elastic\azext_elastic\aaz\latest\elastic\monitor_create_or_update_external_user.py", line 33, in _handler self._execute_operations() File "C:\Users\THES.azure\cliextensions\elastic\azext_elastic\aaz\latest\elastic\monitor_create_or_update_external_user.py", line 92, in _execute_operations self.ExternalUserCreateOrUpdate(ctx=self.ctx)() File "C:\Users\THES.azure\cliextensions\elastic\azext_elastic\aaz\latest\elastic\monitor_create_or_update_external_user.py", line 116, in call return self.on_error(session.http_response) File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_operation.py", line 332, in on_error azure.core.exceptions.HttpResponseError: (ResourcePostActionFailed) ResourcePostActionFailed: Internal Server Error Code: ResourcePostActionFailed Message: ResourcePostActionFailed: Internal Server Error

cli.azure.cli.core.azclierror: (ResourcePostActionFailed) ResourcePostActionFailed: Internal Server Error Code: ResourcePostActionFailed Message: ResourcePostActionFailed: Internal Server Error az_command_data_logger: (ResourcePostActionFailed) ResourcePostActionFailed: Internal Server Error Code: ResourcePostActionFailed Message: ResourcePostActionFailed: Internal Server Error cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x0464D6A0>] az_command_data_logger: exit code: 1 cli.main: Command ran in 11.025 seconds (init: 0.293, invoke: 10.733) 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 3673 in cache telemetry.main: Begin creating telemetry upload process. telemetry.process: Creating upload process: "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry__init__.pyc C:\Users\THES.azure" telemetry.process: Return from creating process telemetry.main: Finish creating telemetry upload process.

Expected behavior

It should create an external user.

Environment Summary

$ az version { "azure-cli": "2.51.0", "azure-cli-core": "2.51.0", "azure-cli-telemetry": "1.1.0", "extensions": { "aks-preview": "0.5.149", "amg": "1.2.7", "azure-devops": "0.26.0", "elastic": "1.0.0b1" } }

Additional context

No response

yonzhan commented 1 year ago

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

thesse1 commented 1 year ago

@yonzhan Any news on this? Thanks!

microsoft-github-policy-service[bot] commented 1 year ago

Thank you for your feedback. This has been routed to the support team for assistance.

thesse1 commented 1 year ago

Hi @jsntcy and @Jing-song Any news on this?

Thanks!

Best regards, Thomas

jsntcy commented 1 year ago

@Jing-song, please take a look at this issue.

Jing-song commented 1 year ago

@thesse1 This is a server error, I'm discussing it with the service team

thesse1 commented 1 year ago

Hi @Jing-song, any news on this one? Thanks a lot!

Best regards, Thomas

utkarshjain1508 commented 11 months ago

Hi @thesse1, we have identified the issue and will be prioritizing the fix by end of December. // @poshett

poshett commented 11 months ago

@thesse1

On checking the details shared above (for the error on 10th of Aug 2023), looks like there may have been some transient issues with the Elastic Partner API that is called internally from Liftr - which has resulted in some 401s.

As the error details in this case is around 4 months old, could you please reattempt this command now for a different / same resource and check if the issue is still prevalent?

This is because we are unable to reproduce this now, and things seem to work fine with the underlying API call as per our initial investigations.

poshett commented 11 months ago

@thesse1, @Jing-song , @jsntcy - Checking to see if we have any updates here.

poshett commented 10 months ago

@thesse1 / @Jing-song / @jsntcy - Please let us know if you can get some updates on the above.

To us it looks like some transient issue that happened 4+ months ago and things seem to be working fine now.

Let us know otherwise.

thesse1 commented 10 months ago

Hi @poshett, thanks a lot! Yes, it is working fine now.

poshett commented 10 months ago

@thesse1 - Thanks for confirming. Kindly close this issue.