Skip to content

Getting exception while setting up DSMS certificates in MOONCAKE cloud VM #24155

@Sriram-Kedarasetti

Description

@Sriram-Kedarasetti

az feedback auto-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.

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotCustomer UsageOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.customer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-requestneeds-team-triageThis issue needs the team to triage.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions