【发布时间】:2022-10-15 16:21:09
【问题描述】:
我正在将 Azure 函数应用程序作为安全实施的一部分部署到其中,并且我收到了标题部分中提到的上述错误。这是我正在运行的 powershell 脚本
az 部署组创建
--name fss-promote-or-quarantine-plugin-deployment
--resource-group $RESOURCE_GROUP_NAME
--template-uri https://raw.githubusercontent.com/trendmicro/cloudone-filestorage 插件/master/post-scan-actions/azure-python-promote-or-quarantine/template.json
-p 提升或隔离功能名称=$FUNCTION_NAME
扫描StorageAccountResourceID=$BLOB_STORAGE_ACCOUNT_RESOURCE_ID
scanResultTopicResourceID=$SCAN_RESULT_TOPIC_RESOURCE_ID
提升StorageAccountConnectionString="$PROMOTE_STORAGE_ACCOUNT_CONNECTION_STRING"
提升模式=移动
隔离StorageAccountConnectionString="$QUARANTINE_STORAGE_ACCOUNT_CONNECTION_STRING"
隔离模式=移动
【问题讨论】:
-
屏幕截图中的代码不是您在上面发布的代码吗?
-
您好 Mathias,类似,我刚刚在屏幕截图中添加了订阅 ID 和其他必填字段。
-
有很大的不同 - 在屏幕截图中,参数名称和参数之间有空格。尝试使用
--parameters promoteFunctionName=nameOfFunction而不是--parameters promoteFunctionName = nameOfFunction -
感谢 Mathias,它起作用了!!,也针对其他领域进行了编辑。
标签: azure powershell azure-functions cloud-security