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
- Deploy Azure Arc Data Controller
- Deploy Log Analytics workspace
- Follow Upload logs to Azure Log Analytics Workspace in direct mode
- 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:
- Created a year ago
- Comments:11 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Glad that your issue is resolved @likamrat. I will close this issue now.
I can confirm that the arcdata version bump resolved the issue