-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
az feedbackauto-generates most of the information requested below, as of CLI version 2.0.62
Related command
Command:
az vm update -g RunnersRgChe2 -n RunnersVMChe2 --set osProfile.dsmsConfiguration='{"certificates": [{"sourceLocation": https://chinae2-dsms.dsms.core.chinacloudapi.cn/dsms/genevacustomers/monitoring/hotpath/mooncake/networktamdmchinamooncake/certificates/chained/mooncakemdmcertnta.pfx},{"sourceLocation":https://chinae2-dsms.dsms.core.chinacloudapi.cn/dsms/genevacustomers/monitoring/warmpath/mooncake/camooncake/networktamds/certificates/chained/mooncakemdscertnta.pfx}],"secrets": []}'
Error:
(BadRequest) Error converting value "{certificates: {sourceLocation: [https://chinae2-dsms.dsms.core.chinacloudapi.cn/dsms/genevacustomers/monitoring/hotpath/mooncake/networktamdmchinamooncake/certificates/chained/mooncakemdmcertnta.pfx},{sourceLocation:https://chinae2-dsms.dsms.core.chinacloudapi.cn/dsms/genevacustomers/monitoring/warmpath/mooncake/camooncake/networktamds/certificates/chained/mooncakemdscertnta.pfx}],secrets: []}" to type 'Microsoft.WindowsAzure.ComputeResourceProvider.API.DsmsConfiguration'. Path 'properties.osProfile.dsmsConfiguration', line 1, position 1250.
Code: BadRequest
Message: Error converting value "{certificates: {sourceLocation: [https://chinae2-dsms.dsms.core.chinacloudapi.cn/dsms/genevacustomers/monitoring/hotpath/mooncake/networktamdmchinamooncake/certificates/chained/mooncakemdmcertnta.pfx},{sourceLocation:https://chinae2-dsms.dsms.core.chinacloudapi.cn/dsms/genevacustomers/monitoring/warmpath/mooncake/camooncake/networktamds/certificates/chained/mooncakemdscertnta.pfx}],secrets: []}" to type 'Microsoft.WindowsAzure.ComputeResourceProvider.API.DsmsConfiguration'. Path 'properties.osProfile.dsmsConfiguration', line 1, position 1250.
Target: vm.properties.osProfile.dsmsConfiguration
Describe the bug
We are getting some unknown exception while running the above command in MOONCAKE cloud environment. This command is used to install the certificate on the provided virtual machine.
To Reproduce
Please run the provided command after connected to MOONCAKE environment.
Expected behavior
The command should execute successfully, and the related certificate should install into the VM.
Environment summary
Below are details of the az cli we are using:
{
"azure-cli": "2.40.0",
"azure-cli-core": "2.40.0",
"azure-cli-telemetry": "1.0.8",
"extensions": {}
}
Additional context
Please reach out to [email protected] for troubleshooting session for quick understanding and resolution of the issue.