我正在使用Azure Management Rest API尝试Capture VM Image operation。每次执行操作时我都会继续跟踪错误
<OperationId>26818000-9c8e-80e6-8a94-558c4d0f442c</OperationId>
<OperationObjectId>/3dc34e96-8d19-483b-8eaa-d79248e56391/services/hostedservices/bhathiya409-vmimageapilivetest/deployments/bhathiya409-vmimageapilivetest/roleinstances/bhathiya409-vmimageapilivetest/Operations</OperationObjectId>
<OperationName>ExecuteRoleOperation</OperationName>
<OperationParameters xmlns:d2p1="http://schemas.datacontract.org/2004/07/Microsoft.WindowsAzure.ServiceManagement">
<OperationParameter>
<d2p1:Name>serviceName</d2p1:Name>
<d2p1:Value>bhathiya409-vmimageapilivetest</d2p1:Value>
</OperationParameter>
<OperationParameter>
<d2p1:Name>deploymentName</d2p1:Name>
<d2p1:Value>bhathiya409-vmimageapilivetest</d2p1:Value>
</OperationParameter>
<OperationParameter>
<d2p1:Name>roleInstanceName</d2p1:Name>
<d2p1:Value>bhathiya409-vmimageapilivetest</d2p1:Value>
</OperationParameter>
<OperationParameter>
<d2p1:Name>roleOperation</d2p1:Name>
<d2p1:Value i:nil="true" />
</OperationParameter>
</OperationParameters>
<OperationStatus>
<ID>26818000-9c8e-80e6-8a94-558c4d0f442c</ID>
<Status>Failed</Status>
<HttpStatusCode>500</HttpStatusCode>
<Error>
<Code>InternalError</Code>
<Message>The server encountered an internal error. Please retry the request.</Message>
</Error>
</OperationStatus>
<OperationStartedTime>2015-03-30T22:33:55Z</OperationStartedTime>
<OperationCompletedTime>2015-03-30T22:34:00Z</OperationCompletedTime>
<OperationKind>CaptureRoleAsVMImageOperation</OperationKind>
答案 0 :(得分:0)
问题出在OSState属性中,我传递的是无效值。
可能的值是: 广义的, 专业
我认为这些选项区分大小写。