共用方式為


二頭肌診斷代碼 - BCP130

decorators (如 @description@allowed、 等)在不支援的情境中使用時,會發生在檔案中 .bicepparam 。 雖然裝飾器在參數宣告的檔案中仍然有效 .bicep ,但在參數檔案中則無效,且現在明確禁止使用。

Description

這裡不允許裝潢師。

Level

錯誤

Solutions

從 Bicep 參數檔案中移除裝飾器。 欲了解更多關於參數使用資訊,請參見 使用參數

範例

以下範例提及診斷,因為 @description 裝飾器被用於 .bicepparam 檔案中。

using './main.bicep'

@description('The name of the storage account to create.')
param storageName = 'mystorageacct'
param storageSKU = 'Standard_LRS'

你可以透過拆除 @description 裝飾器來修復診斷問題。

using './main.bicep'

param storageName = 'mystorageacct'
param storageSKU = 'Standard_LRS'

後續步驟

如需 Bicep 診斷的詳細資訊,請參閱 Bicep 核心診斷