question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az arcdata dc update failing

See original GitHub issue

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug When running various az arcdata dc update commands, cli is erroring out

PS C:\Users\arcdemo> $Env:WORKSPACE_ID=$(az resource show --resource-group $Env:resourceGroup --name $Env:workspaceName --resource-type "Microsoft.OperationalInsights/workspaces" --query properties.customerId -o tsv)
PS C:\Users\arcdemo> $Env:WORKSPACE_SHARED_KEY=$(az monitor log-analytics workspace get-shared-keys --resource-group $Env:resourceGroup --workspace-name $Env:workspaceName  --query primarySharedKey -o tsv)
PS C:\Users\arcdemo> az arcdata dc update --name arcbox-dc --resource-group $Env:resourceGroup --auto-upload-logs true
The command failed with an unexpected error. Here is the traceback:
ArmClient.update_dc() takes 4 positional arguments but 6 were given
Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 658, in execute
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 721, in _run_jobs_serially
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 692, in _run_job
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 328, in __call__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "C:\Users\arcdemo\.azure\cliextensions\arcdata\azext_arcdata\dc\custom.py", line 167, in dc_update
    return client.services.dc.update(cvo)
  File "C:\Users\arcdemo\.azure\cliextensions\arcdata\azext_arcdata\core\services.py", line 383, in update
    return self._arm_client.update_dc(
TypeError: ArmClient.update_dc() takes 4 positional arguments but 6 were given
To open an issue, please run: 'az feedback'
PS C:\Users\arcdemo> az arcdata dc update --name arcbox-dc --resource-group $Env:resourceGroup --auto-upload-metrics true
The command failed with an unexpected error. Here is the traceback:
ArmClient.update_dc() takes 4 positional arguments but 6 were given
Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 658, in execute
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 721, in _run_jobs_serially
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 692, in _run_job
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 328, in __call__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "C:\Users\arcdemo\.azure\cliextensions\arcdata\azext_arcdata\dc\custom.py", line 167, in dc_update
    return client.services.dc.update(cvo)
  File "C:\Users\arcdemo\.azure\cliextensions\arcdata\azext_arcdata\core\services.py", line 383, in update
    return self._arm_client.update_dc(
TypeError: ArmClient.update_dc() takes 4 positional arguments but 6 were given
To open an issue, please run: 'az feedback'

To Reproduce

  1. Deploy Azure Arc Data Controller
  2. Deploy Log Analytics workspace
  3. Follow Upload logs to Azure Log Analytics Workspace in direct mode
  4. Follow Upload metrics for Azure Arc data controller in direct mode

Expected behavior

Environment summary

PS C:\Users\arcdemo> az -v
azure-cli                         2.35.0

core                              2.35.0
telemetry                          1.0.6

Extensions:
arcdata                            1.3.1

Dependencies:
msal                              1.17.0
azure-mgmt-resource               20.0.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
RakeshMohanMSFTcommented, May 6, 2022

Glad that your issue is resolved @likamrat. I will close this issue now.

1reaction
likamratcommented, May 6, 2022

I can confirm that the arcdata version bump resolved the issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

az arcdata dc - Microsoft Learn
Update data controller. Updates the datacontroller to enable/disable auto-uploading logs and metrics. Azure CLI Copy.
Read more >
Azure Arc enabled Data Services - Crying Cloud
az ad sp create-for-rbac --name azure-arc-metrics ... the link from the Azure Arc Data Controller Dashboard in ADS, it will throw an error:....
Read more >
Arc SQL MI - Scripted Active Directory Setup - Raki Rahman
We can patch the K8s LB at any time in the process if we want to ... az arcdata dc create --profile-name azure-arc-aks-premium-storage ......
Read more >
Azure Arc data controller deployment on PowerFlex
Azure Arc data controller deployment in direct connectivity mode is performed ... PS C:\Windows\system32> az k8s-extension create -c "$ENV:resourceName" -g ...
Read more >
Portworx with Azure Arc-enabled Data Services for Stateful ...
Control Plane Layer: The Azure cloud is extended to the Kubernetes cluster via the Azure Arc data controller. More specifically, the controller extends...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found