【发布时间】:2021-07-18 12:59:33
【问题描述】:
我的创建 blob 函数将整个 blob 内容输出到一行而不是标准 JSON 格式。
原始输入:
[
{
"AadTenantId_g": "",
"ActionIdBefore_g": "",
"ActionId_g": "",
"ActionSource_s": "",
"Activity_s": "",
"ApplicationId_g": "",
"ApplicationId_s": "",
"ApplicationName_s": "",
"Computer": "",
"ContentIdBefore_g": "",
"ContentId_g": "",
"DataState_s": "",
"DeviceId_g": "",
"DeviceId_s": "",
"DiscoveredInformationTypes_s": "",
"IPv4_s": "",
"InformationTypesAbove55_s": "",
"InformationTypesAbove65_s": "",
"InformationTypesAbove75_s": "",
"InformationTypesAbove85_s": "",
"InformationTypesAbove95_s": "",
"InformationTypes_s": "",
"IsLabelChanged_b": null,
"IsProtectionChanged_b": null,
"LabelIdBeforeAction_g": "",
"LabelId_g": "",
"LabelNameBefore_s": "",
"LabelName_s": "",
"LastModifiedBy_s": "",
"LastModifiedDate_t": null,
"Location_s": "",
"LogId_g": "",
"MG": "",
"MachineName_s": "",
"ManagementGroupName": "",
"ObjectId_s": "",
"Operation_s": "",
"ParentLabelNameBefore_s": "",
"ParentLabelName_s": "",
"Platform_s": "",
"ProcessName_g": "",
"ProcessName_s": "",
"ProcessVersion_s": "",
"ProductVersion_s": "",
"ProtectedBeforeAction_b": null,
"Protected_b": false,
"ProtectionOwnerBefore_s": "",
"ProtectionOwner_s": "",
"ProtectionTime_t": null,
"ProtectionTypeBefore_s": "",
"ProtectionType_s": "",
"RawData": "",
"RecommendedLabelId_g": "",
"RecommendedLabelName_s": "",
"ResultStatus": "",
"ResultStatus_s": "",
"SensitivityChange_s": "",
"SourceSystem": "",
"TemplateIdBefore_g": "",
"TemplateId_g": "",
"TenantId": "",
"TimeGenerated": "",
"Type": "",
"UserId_s": "",
"UserJustification_s": "",
"Version_s": "",
"Workload_s": "",
"_ResourceId": "",
"dynamicInformationTypes_s": null
}
]
输出:
[{"AadTenantId_g":"","ActionIdBefore_g":"","ActionId_g":"","ActionSource_s":"","Activity_s":"","ApplicationId_g":"","ApplicationId_s":"","ApplicationName_s":"","Computer":"","ContentIdBefore_g":"","ContentId_g":"","DataState_s":"","DeviceId_g":"","DeviceId_s":"","DiscoveredInformationTypes_s":"","IPv4_s":"","InformationTypesAbove55_s":"","InformationTypesAbove65_s":"","InformationTypesAbove75_s":"","InformationTypesAbove85_s":"","InformationTypesAbove95_s":"","InformationTypes_s":"","IsLabelChanged_b":null,"IsProtectionChanged_b":null,"LabelIdBeforeAction_g":"","LabelId_g":"","LabelNameBefore_s":"","LabelName_s":"","LastModifiedBy_s":"","LastModifiedDate_t":null,"Location_s":"","LogId_g":"","MG":"","MachineName_s":"","ManagementGroupName":"","ObjectId_s":"","Operation_s":"","ParentLabelNameBefore_s":"","ParentLabelName_s":"","Platform_s":"","ProcessName_g":"","ProcessName_s":"","ProcessVersion_s":"","ProductVersion_s":"","ProtectedBeforeAction_b":null,"Protected_b":false,"ProtectionOwnerBefore_s":"","ProtectionOwner_s":"","ProtectionTime_t":null,"ProtectionTypeBefore_s":"","ProtectionType_s":"","RawData":"","RecommendedLabelId_g":"","RecommendedLabelName_s":"","ResultStatus":"","ResultStatus_s":"","SensitivityChange_s":"","SourceSystem":"","TemplateIdBefore_g":"","TemplateId_g":"","TenantId":"","TimeGenerated":"","Type":"","UserId_s":"","UserJustification_s":"","Version_s":"","Workload_s":"","_ResourceId":"","dynamicInformationTypes_s":null}]
我认为正文的 MediaType 是问题所在,因为 MediaType = application/octet-stream。
此问题纯粹位于创建 blob 阶段。
任何帮助将不胜感激 - 谢谢。
【问题讨论】:
标签: json azure blob azure-logic-apps azure-blob-storage