Microsoft.Insights 元件
Bicep 資源定義
元件資源類型可以使用目標作業進行部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
備註
如需部署監視解決方案的指引,請參閱 使用 Bicep 建立監視資源。
資源格式
若要建立 Microsoft.Insights/components 資源,請將下列 Bicep 新增至您的範本。
resource symbolicname 'Microsoft.Insights/components@2020-02-02' = {
name: 'string'
location: 'string'
tags: {
tagName1: 'tagValue1'
tagName2: 'tagValue2'
}
kind: 'string'
etag: 'string'
properties: {
Application_Type: 'string'
DisableIpMasking: bool
DisableLocalAuth: bool
Flow_Type: 'Bluefield'
ForceCustomerStorageForProfiler: bool
HockeyAppId: 'string'
ImmediatePurgeDataOn30Days: bool
IngestionMode: 'string'
publicNetworkAccessForIngestion: 'string'
publicNetworkAccessForQuery: 'string'
Request_Source: 'rest'
RetentionInDays: int
SamplingPercentage: json('decimal-as-string')
WorkspaceResourceId: 'string'
}
}
屬性值
components
名稱 | 描述 | 值 |
---|---|---|
NAME | 資源名稱 | 字串 (必要) 字元限制:1-260 合法字元: 不能使用: %&\?/ 或控制字元不能以空格或句號結尾。 |
location | 資源位置 | 字串 (必要) |
tags | 資源標籤 | 標記名稱和值的字典。 請參閱 範本中的標記 |
kind | 此元件參考的應用程式類型,用來自定義UI。 這個值是手繪多邊形字串,值通常應該是下列其中一項:web、ios、other、store、java、phone。 | 字串 (必要) |
etag | 資源 etag | 字串 |
properties | 定義 Application Insights 元件資源的屬性。 | ApplicationInsightsComponentProperties |
ApplicationInsightsComponentProperties
名稱 | 描述 | 值 |
---|---|---|
Application_Type | 受監視的應用程式類型。 | 'other' 'web' (必要) |
DisableIpMasking | 停用IP遮罩。 | bool |
DisableLocalAuth | 停用非 AAD 型驗證。 | bool |
Flow_Type | Application Insights 系統用來判斷此元件所建立的流程類型。 透過 REST API 建立 /更新元件時,這會設定為 'Bluefield'。 | 'Bluefield' |
ForceCustomerStorageForProfiler | 強制使用者為分析工具和調試程式建立自己的記憶體帳戶。 | bool |
HockeyAppId | 將新應用程式新增至 HockeyApp 時所建立的唯一應用程式識別碼,用於與 HockeyApp 通訊。 | 字串 |
ImmediatePurgeDataOn30Days | 在 30 天后立即清除數據。 | bool |
IngestionMode | 表示擷取的流程。 | 'ApplicationInsights' 'ApplicationInsightsWithDiagnosticSettings' 'LogAnalytics' |
publicNetworkAccessForIngestion | 用於存取 Application Insights 擷取的網路存取類型。 | 'Disabled' 'Enabled' |
publicNetworkAccessForQuery | 用於存取 Application Insights 查詢的網路存取類型。 | 'Disabled' 'Enabled' |
Request_Source | 描述哪些工具已建立此 Application Insights 元件。 使用此 API 的客戶應將此設定為預設 『rest』。 | 'rest' |
RetentionInDays | 保留期限為天數。 | int |
SamplingPercentage | 正在針對 Application Insights 遙測取樣的應用程式所產生的數據百分比。 若要指定十進位值,請使用 json () 函式。 | int 或 json decimal |
WorkspaceResourceId | 要擷取數據的記錄分析工作區資源標識碼。 需要這個屬性,才能使用此 API 版本建立應用程式。 來自舊版的應用程式將不會有這個屬性。 | 字串 |
快速入門範本
下列快速入門範本會部署此資源類型。
範本 | 描述 |
---|---|
BrowserBox Azure Edition |
此範本會在 Azure Ubuntu Server 22.04 LTS、Debian 11 或 RHEL 8.7 LVM VM 上部署 BrowserBox。 |
使用 Jenkins 和 Azure Web Apps 的 Java CI/CD |
這是使用 Jenkins 和 Azure Web Apps 的 Java CI/CD 範例。 |
擷取者 Xperience |
此範本可協助部署在 Microsoft Azure 中裝載一個要裝載一個多塞克利ico Xperience 環境所需的資源。 |
簡單 Umbraco CMS Web 應用程式 |
此範本提供在 Azure App 服務 Web Apps 上部署 umbraco CMS Web 應用程式的簡單方式。 |
使用 Azure 防火牆的 ILB App Service 環境 |
示範如何使用 Azure 防火牆 整合部署 App Service 環境的 Resource Manager 範本和參數 |
Enterprise Governance-AppService、SQL DB、AD、OMS、Runbook |
企業或大型的雲端採用需要負責任且有效率的治理模型,才能從其雲端部署衍生價值。 CloudWise (解決方案的程式代碼名稱) ,是 Azure 合作夥伴快速入門提供的複合解決方案,是客戶、系統整合者和合作夥伴的採用啟用者,可提供可自助、自動化的治理和作業解決方案,著重於優化成本、改善您的應用程式 () 可靠性、降低商務風險。 解決方案強調可見度和控制的核心治理要素。 |
具有 ILB ASE 的 eShop 網站 |
App Service 環境是 Azure App Service 的進階服務方案選項,提供完全隔離的專用環境,能夠極為安全地執行 Azure App Service 應用程式,包括 Web Apps、Mobile Apps 和 API Apps。 |
具有 SQL Database、Azure Cosmos DB、Azure 搜尋服務的 Web 應用程式 |
此範本會布建 Web 應用程式、SQL Database、Azure Cosmos DB、Azure 搜尋服務和 Application Insights。 |
Azure Machine Learning 工作區 |
此範本會建立新的 Azure Machine Learning 工作區,以及加密的記憶體帳戶、KeyVault 和 Applications Insights 記錄 |
使用應用程式閘道在內部 VNet 中建立 API 管理 |
此範本示範如何在受 Azure 應用程式閘道 保護的專用網上建立 Azure API 管理 實例。 |
部署簡單的 Azure Spring Apps 微服務應用程式 |
此範本會部署簡單的 Azure Spring Apps 微服務應用程式,以在 Azure 上執行。 |
具有 Azure Functions 來源的 Front Door Standard/Premium |
此範本會建立 Front Door Standard/Premium、Azure Functions 應用程式,並設定函式應用程式來驗證流量是否已通過 Front Door 來源。 |
具有函式和 Private Link 服務的 Azure Digital Twins |
此範本會建立使用已連線 虛擬網路 Azure 函式設定的 Azure Digital Twins 服務,此函式可透過 Private Link 端點與 Digital Twins 進行通訊。 它也會建立 私用 DNS 區域,以允許從 虛擬網路 到私人端點內部子網IP位址的 Digital Twins 端點順暢主機名解析。 主機名會儲存為名稱為 『ADT_ENDPOINT』 的 Azure 函式設定。 |
部署 Application Insight 並在其中建立警示 |
此範本可讓您部署Application Insight,並在其中建立警示 |
& 數據存放區建立具有多個數據集的 AML 工作區 |
此範本會建立具有多個數據集 & 數據存放區的 Azure Machine Learning 工作區。 |
Azure Machine Learning 端對端安全設定 |
這組 Bicep 範本示範如何在安全設定中設定 Azure Machine Learning 端對端。 此參考實作包括工作區、計算叢集、計算實例和連結的私人 AKS 叢集。 |
Azure Machine Learning 端對端安全設定 (舊版) |
這組 Bicep 範本示範如何在安全設定中設定 Azure Machine Learning 端對端。 此參考實作包括工作區、計算叢集、計算實例和連結的私人 AKS 叢集。 |
使用私人IP位址建立 AKS 計算目標 |
此範本會在具有私人IP位址的指定 Azure Machine Learning 服務工作區中建立 AKS 計算目標。 |
建立 Azure Machine Learning 服務工作區 |
此部署範本會指定 Azure Machine Learning 工作區及其相關聯的資源,包括 Azure 金鑰保存庫、Azure 記憶體、Azure 應用程式 Insights 和 Azure Container Registry。 此組態描述開始使用 Azure Machine Learning 所需的最少資源集。 |
(CMK) 建立 Azure Machine Learning 服務工作區 |
此部署範本會指定 Azure Machine Learning 工作區及其相關聯的資源,包括 Azure 金鑰保存庫、Azure 記憶體、Azure 應用程式 Insights 和 Azure Container Registry。 此範例示範如何設定 Azure Machine Learning 以使用客戶管理的加密密鑰進行加密。 |
(vnet) 建立 Azure Machine Learning 服務工作區 |
此部署範本會指定 Azure Machine Learning 工作區及其相關聯的資源,包括 Azure 金鑰保存庫、Azure 記憶體、Azure 應用程式 Insights 和 Azure Container Registry。 此組態描述您在網路隔離設定中開始使用 Azure Machine Learning 所需的資源集。 |
(舊版) 建立 Azure Machine Learning 服務工作區 |
此部署範本會指定 Azure Machine Learning 工作區及其相關聯的資源,包括 Azure 金鑰保存庫、Azure 記憶體、Azure 應用程式 Insights 和 Azure Container Registry。 此組態描述您在網路隔離設定中開始使用 Azure Machine Learning 所需的資源集。 |
在 Azure API 管理 前面建立 Azure Front Door |
此範例示範如何使用 Azure Front Door 作為 Azure API 管理 前面的全域負載平衡器。 |
使用 Azure SQL 後端 App Service 環境 |
此範本會建立具有 Azure SQL 後端以及私人端點以及通常用於私人/隔離環境中相關聯資源的 App Service 環境。 |
布建在 App Service 方案上執行的函式應用程式 |
此範本會在專用主控方案上布建函式應用程式,這表示它會執行並計費,就像任何 App Service 網站一樣。 |
在取用方案上布建函式應用程式 |
此範本會在取用方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,且每個執行都會向您計費,且不會有常設資源承諾。 有其他範本可用於布建專用主控方案。 |
使用部署位置布建取用方案函式 |
此範本會在取用方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,且每個執行都會向您計費,且不會有常設資源承諾。 有其他範本可用於布建專用主控方案。 |
裝載於專用方案的 Azure 函式應用程式 |
此範本會在專用主控方案上布建函式應用程式,這表示它會執行並計費,就像任何 App Service 網站一樣。 |
具有部署位置的 Azure 函式應用程式 |
此範本會在具有生產位置的 Premium 方案上布建函式應用程式,以及額外的部署位置。 |
具有事件中樞和受控識別的 Azure 函式應用程式 |
他的範本會在Linux取用方案上布建 Azure 函式應用程式,以及事件中樞、Azure 記憶體和 Application Insights。 函式應用程式可以使用受控識別連線到事件中樞和記憶體帳戶 |
裝載於Linux取用方案的 Azure 函式應用程式 |
此範本會在Linux取用方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,且每個執行都會向您計費,且不會有常設資源承諾。 |
使用遠端組建的Linux取用方案上的函式應用程式 |
此範本會在 Linux 取用方案上佈建函式應用程式,並在程式碼部署期間執行遠端建置。 應用程式會視需要執行,且每個執行都會向您計費,且不會有常設資源承諾。 |
裝載在進階方案上的 Azure 函式應用程式 |
此範本會在 Premium 方案上布建函式應用程式。 |
私人函式應用程式和私人端點保護的記憶體 |
此範本會在具有私人端點的 Premium 方案中布建函式應用程式,並透過私人端點與 Azure 記憶體通訊。 |
建立函式應用程式和私人端點保護的記憶體 |
此範本可讓您部署透過私人端點與 Azure 記憶體通訊的 Azure 函式應用程式。 |
Azure 函式應用程式與 虛擬網路 整合 |
此範本會在進階方案上布建函式應用程式,其中已啟用區域虛擬網路整合至新建立的虛擬網路。 |
裝載於 Windows 取用方案的 Azure 函式應用程式 |
此範本會在 Windows 使用量方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,且每個執行都會向您計費,且不會有常設資源承諾。 |
Azure 函式應用程式和 HTTP 觸發的函式 |
此範例會在範本中內嵌部署 Azure 函式應用程式和 HTTP 觸發的函式。 它也會部署 金鑰保存庫,並使用函式應用程式的主機金鑰填入秘密。 |
部署已啟用 AZ 的 Azure Function Premium 方案 |
此範本可讓您部署具有可用性區域支援的 Azure Function Premium 方案,包括已啟用可用性區域的可用性區域記憶體帳戶。 |
由 Azure Frontdoor 保護的函式應用程式 |
此範本可讓您部署受 Azure Frontdoor Premium 保護及發佈的 Azure Premium 函式。 Azure Frontdoor 與 Azure Functions 之間的串連受到 Azure Private Link 保護。 |
使用 vnet 整合部署 Azure Function Premium 方案 |
此範本可讓您部署已啟用區域虛擬網路整合的 Azure Function Premium 方案至新建立的虛擬網路。 |
使用受控服務識別建立函式應用程式 |
使用針對記錄和計量設定的 Application Insights 來建立已啟用受控服務識別的函式應用程式。 |
使用內部 API 管理 和 Web 應用程式進行 應用程式閘道 |
應用程式閘道 將因特網流量路由傳送至虛擬網路 (內部模式) API 管理 實例,該實例服務裝載於 Azure Web 應用程式中的 Web API。 |
Web 應用程式,以及傳送至 Log Analytics 的 Application Insights |
此範本將協助支援 microsoft.insights/components 的新 API 版本。 從 2020-02-02-preview WorkspaceID 開始,建立應用程式 Inisghts 時,將需要此範本。此範本將會部署 App Service Plan、App Service、Application Insights、Log Analytics 工作區,並將其全部連結在一起。 |
具有受控識別、SQL Server和 ΑЛ 的 Web 應用程式 |
針對應用程式 + 資料 + 受控識別 + 監視部署 Azure 基礎結構的簡單範例 |
使用 SQL Database 布建 Web 應用程式 |
此範本會布建 Web 應用程式、SQL Database、自動調整設定、警示規則和 App Insights。 它會在資料庫的 Web 應用程式中設定 連接字串。 |
Django 應用程式 |
此範本可讓您建立部署 Django 應用程式的 App Service。 |
ASP.NET 應用程式 |
此範本可讓您建立部署 ASP.NET 應用程式的 App Service。 |
ARM 範本資源定義
元件資源類型可以使用目標作業進行部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
備註
如需部署監視解決方案的指引,請參閱 使用 Bicep 建立監視資源。
資源格式
若要建立 Microsoft.Insights/components 資源,請將下列 JSON 新增至您的範本。
{
"type": "Microsoft.Insights/components",
"apiVersion": "2020-02-02",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"kind": "string",
"etag": "string",
"properties": {
"Application_Type": "string",
"DisableIpMasking": "bool",
"DisableLocalAuth": "bool",
"Flow_Type": "Bluefield",
"ForceCustomerStorageForProfiler": "bool",
"HockeyAppId": "string",
"ImmediatePurgeDataOn30Days": "bool",
"IngestionMode": "string",
"publicNetworkAccessForIngestion": "string",
"publicNetworkAccessForQuery": "string",
"Request_Source": "rest",
"RetentionInDays": "int",
"SamplingPercentage": "[json('decimal-as-string')]",
"WorkspaceResourceId": "string"
}
}
屬性值
components
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | 'Microsoft.Insights/components' |
apiVersion | 資源 API 版本 | '2020-02-02' |
NAME | 資源名稱 | 字串 (必要) 字元限制:1-260 合法字元: 不能使用: %&\?/ 或控制字元不能以空格或句號結尾。 |
location | 資源位置 | 需要字串 () |
tags | 資源標籤 | 標記名稱和值的字典。 請參閱 範本中的標籤 |
kind | 此元件所參考的應用程式類型,用來自定義UI。 此值是手繪多邊形字串,值通常應該是下列其中一項:web、ios、other、store、java、phone。 | 需要字串 () |
etag | 資源 etag | 字串 |
properties | 定義 Application Insights 元件資源的屬性。 | ApplicationInsightsComponentProperties |
ApplicationInsightsComponentProperties
名稱 | 描述 | 值 |
---|---|---|
Application_Type | 正在監視的應用程式類型。 | 'other' 需要 『web』 () |
DisableIpMasking | 停用IP遮罩。 | bool |
DisableLocalAuth | 停用非 AAD 型驗證。 | bool |
Flow_Type | Application Insights 系統用來判斷此元件所建立的流程類型。 在透過 REST API 建立 /更新元件時,這會設定為 'Bluefield'。 | 'Bluefield' |
ForceCustomerStorageForProfiler | 強制使用者為分析工具和調試程式建立自己的記憶體帳戶。 | bool |
HockeyAppId | 將新應用程式新增至 HockeyApp 時所建立的唯一應用程式識別碼,用於與 HockeyApp 的通訊。 | 字串 |
ImmediatePurgeDataOn30Days | 在 30 天后立即清除數據。 | bool |
IngestionMode | 表示擷取的流程。 | 'ApplicationInsights' 'ApplicationInsightsWithDiagnosticSettings' 'LogAnalytics' |
publicNetworkAccessForIngestion | 用於存取 Application Insights 擷取的網路存取類型。 | 'Disabled' 'Enabled' |
publicNetworkAccessForQuery | 用於存取 Application Insights 查詢的網路存取類型。 | 'Disabled' 'Enabled' |
Request_Source | 描述建立此 Application Insights 元件的工具。 使用此 API 的客戶應將此設定為預設的 『rest』。 | 'rest' |
RetentionInDays | 保留期間以天為單位。 | int |
SamplingPercentage | 正在針對 Application Insights 遙測取樣的應用程式所產生的數據百分比。 若要指定十進位值,請使用 json () 函式。 | int 或 json decimal |
WorkspaceResourceId | 要擷取數據的記錄分析工作區資源標識碼。 需要這個屬性,才能使用此 API 版本建立應用程式。 來自舊版的應用程式將不會有這個屬性。 | 字串 |
快速入門範本
下列快速入門範本會部署此資源類型。
範本 | 描述 |
---|---|
BrowserBox Azure Edition |
此範本會在 Azure Ubuntu Server 22.04 LTS、Debian 11 或 RHEL 8.7 LVM VM 上部署 BrowserBox。 |
使用 Jenkins 和 Azure Web Apps 的 Java CI/CD |
這是使用 Jenkins 和 Azure Web Apps 的 Java CI/CD 範例。 |
一元二十二月 |
此範本可協助部署在 Microsoft Azure 中裝載一個在一起的一個 Azure 中裝載一個的一系列資源。 |
簡單 Umbraco CMS Web 應用程式 |
此範本提供在 Azure App 服務 Web Apps 上部署 umbraco CMS Web 應用程式的簡單方式。 |
具有 Azure 防火牆 的 ILB App Service 環境 |
Resource Manager 範本和參數,示範如何使用 Azure 防火牆 整合部署 App Service 環境 |
Enterprise Governance-AppService、SQL DB、AD、OMS、Runbook |
企業或大型的雲端採用需要負責任且有效率的治理模型,才能從其雲端部署衍生價值。 CloudWise (解決方案) 的程式代碼名稱,是 Azure 合作夥伴快速入門中提供的複合解決方案,是客戶、系統整合者和合作夥伴的採用啟用者,可提供自助式、自動化的治理和作業解決方案,著重於優化成本、改善應用程式 () 可靠性、降低商務風險。 此解決方案強調可見度和控制的核心治理要素。 |
使用 ILB ASE 的 eShop 網站 |
App Service 環境是 Azure App Service 的進階服務方案選項,提供完全隔離的專用環境,能夠極為安全地執行 Azure App Service 應用程式,包括 Web Apps、Mobile Apps 和 API Apps。 |
具有 SQL Database、Azure Cosmos DB、Azure 搜尋服務的 Web 應用程式 |
此範本會布建 Web 應用程式、SQL Database、Azure Cosmos DB、Azure 搜尋服務和 Application Insights。 |
Azure Machine Learning 工作區 |
此範本會建立新的 Azure Machine Learning 工作區,以及加密的記憶體帳戶、KeyVault 和 Applications Insights 記錄 |
使用應用程式閘道在內部 VNet 中建立 API 管理 |
此範本示範如何在受 Azure 應用程式閘道 保護的專用網上建立 Azure API 管理 的實例。 |
部署簡單的 Azure Spring Apps 微服務應用程式 |
此範本會部署簡單的 Azure Spring Apps 微服務應用程式,以在 Azure 上執行。 |
具有 Azure Functions 來源的 Front Door Standard/Premium |
此範本會建立 Front Door Standard/Premium、Azure Functions 應用程式,並設定函式應用程式來驗證流量是否通過 Front Door 來源。 |
具有函式和 Private Link 服務的 Azure Digital Twins |
此範本會建立一個 Azure Digital Twins 服務,其設定了已連線 虛擬網路 Azure 函式,可透過 Private Link 端點與 Digital Twins 進行通訊。 它也會建立 私用 DNS 區域,以允許從 虛擬網路 到私人端點內部子網IP位址的 Digital Twins 端點順暢主機名解析。 主機名會儲存為名稱為 『ADT_ENDPOINT』 的 Azure 函式設定。 |
部署 Application Insight 並在其中建立警示 |
此範本可讓您部署Application Insight,並在其中建立警示 |
& 數據存放區建立具有多個數據集的 AML 工作區 |
此範本會建立具有多個數據集的 Azure Machine Learning 工作區,& 數據存放區。 |
Azure Machine Learning 端對端安全設定 |
這組 Bicep 範本示範如何在安全設定中端對端設定 Azure Machine Learning。 此參考實作包括 Workspace、計算叢集、計算實例和附加的私人 AKS 叢集。 |
Azure Machine Learning 端對端安全設定 (舊版) |
這組 Bicep 範本示範如何在安全設定中端對端設定 Azure Machine Learning。 此參考實作包括 Workspace、計算叢集、計算實例和附加的私人 AKS 叢集。 |
使用私人IP位址建立 AKS 計算目標 |
此範本會在具有私人IP位址的指定 Azure Machine Learning 服務工作區中建立 AKS 計算目標。 |
建立 Azure Machine Learning 服務工作區 |
此部署範本會指定 Azure Machine Learning 工作區及其相關聯的資源,包括 Azure 金鑰保存庫、Azure 記憶體、Azure 應用程式 Insights 和 Azure Container Registry。 此組態描述開始使用 Azure Machine Learning 所需的最少資源集。 |
(CMK) 建立 Azure Machine Learning 服務工作區 |
此部署範本會指定 Azure Machine Learning 工作區及其相關聯的資源,包括 Azure 金鑰保存庫、Azure 記憶體、Azure 應用程式 Insights 和 Azure Container Registry。 此範例示範如何設定 Azure Machine Learning 以使用客戶管理的加密密鑰進行加密。 |
(vnet) 建立 Azure Machine Learning 服務工作區 |
此部署範本會指定 Azure Machine Learning 工作區及其相關聯的資源,包括 Azure 金鑰保存庫、Azure 記憶體、Azure 應用程式 Insights 和 Azure Container Registry。 此組態描述在網路隔離設定中開始使用 Azure Machine Learning 所需的一組資源。 |
(舊版) 建立 Azure Machine Learning 服務工作區 |
此部署範本會指定 Azure Machine Learning 工作區及其相關聯的資源,包括 Azure 金鑰保存庫、Azure 記憶體、Azure 應用程式 Insights 和 Azure Container Registry。 此組態描述在網路隔離設定中開始使用 Azure Machine Learning 所需的一組資源。 |
在 Azure API 管理 前面建立 Azure Front Door |
此範例示範如何使用 Azure Front Door 作為 Azure API 管理 前面的全域負載平衡器。 |
使用 Azure SQL 後端 App Service 環境 |
此範本會建立具有 Azure SQL 後端以及私人端點以及通常用於私人/隔離環境中的相關聯資源 App Service 環境。 |
布建在 App Service 方案上執行的函式應用程式 |
此範本會在專用主控方案上布建函式應用程式,這表示它會執行並計費,就像任何 App Service 網站一樣。 |
在取用方案上布建函式應用程式 |
此範本會在取用方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,而且每個執行都會向您收取費用,而不需要常設資源承諾。 有其他範本可用於布建專用主控方案。 |
使用部署位置布建取用方案函式 |
此範本會在取用方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,而且每個執行都會向您收取費用,而不需要常設資源承諾。 有其他範本可用於布建專用主控方案。 |
裝載於專用方案的 Azure 函式應用程式 |
此範本會在專用主控方案上布建函式應用程式,這表示它會執行並計費,就像任何 App Service 網站一樣。 |
具有部署位置的 Azure 函式應用程式 |
此範本會在具有生產位置和額外部署位置的 Premium 方案上布建函式應用程式。 |
具有事件中樞和受控識別的 Azure 函式應用程式 |
他的範本會在Linux取用方案上布建 Azure 函式應用程式,以及事件中樞、Azure 記憶體和 Application Insights。 函式應用程式能夠使用受控識別來連線到事件中樞和記憶體帳戶 |
裝載於Linux取用方案的 Azure 函式應用程式 |
此範本會在Linux使用量方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,而且每個執行都會向您收取費用,而不需要常設資源承諾。 |
使用遠端組建的Linux使用量方案上的函式應用程式 |
此範本會在 Linux 使用量方案上佈建函式應用程式,並在程式碼部署期間執行遠端建置。 應用程式會視需要執行,而且每個執行都會向您收取費用,而不需要常設資源承諾。 |
裝載於進階方案的 Azure 函式應用程式 |
此範本會在 Premium 方案上布建函式應用程式。 |
私人函式應用程式和私人端點保護的記憶體 |
此範本會在具有私人端點的進階方案上布建函式應用程式,並透過私人端點與 Azure 記憶體通訊。 |
建立函式應用程式和私人端點保護的記憶體 |
此範本可讓您部署透過私人端點與 Azure 記憶體通訊的 Azure 函式應用程式。 |
具有 虛擬網路整合的 Azure 函式應用程式 |
此範本會在進階方案上布建函式應用程式,其中已啟用區域虛擬網路整合至新建立的虛擬網路。 |
裝載於 Windows 取用方案的 Azure 函式應用程式 |
此範本會在 Windows 使用量方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,且每個執行都會向您計費,且不會有常設資源承諾。 |
Azure 函式應用程式和 HTTP 觸發的函式 |
此範例會在範本中內嵌部署 Azure 函式應用程式和 HTTP 觸發的函式。 它也會部署 金鑰保存庫,並使用函式應用程式的主機金鑰填入秘密。 |
部署已啟用 AZ 的 Azure Function Premium 方案 |
此範本可讓您部署具有可用性區域支援的 Azure Function Premium 方案,包括已啟用可用性區域的可用性區域記憶體帳戶。 |
由 Azure Frontdoor 保護的函式應用程式 |
此範本可讓您部署受 Azure Frontdoor Premium 保護及發佈的 Azure Premium 函式。 Azure Frontdoor 與 Azure Functions 之間的串連受到 Azure Private Link 保護。 |
使用 vnet 整合部署 Azure Function Premium 方案 |
此範本可讓您部署已啟用區域虛擬網路整合的 Azure Function Premium 方案至新建立的虛擬網路。 |
使用受控服務識別建立函式應用程式 |
使用針對記錄和計量設定的 Application Insights 來建立已啟用受控服務識別的函式應用程式。 |
使用內部 API 管理 和 Web 應用程式進行 應用程式閘道 |
應用程式閘道 將因特網流量路由傳送至虛擬網路 (內部模式) API 管理 實例,以服務裝載於 Azure Web 應用程式中的 Web API。 |
Web 應用程式,以及傳送至 Log Analytics 的 Application Insights |
此範本將協助支援 microsoft.insights/components 的新 API 版本。 從 2020-02-02-preview WorkspaceID 開始,建立應用程式 Inisghts 時,將需要此範本。此範本會部署 App Service Plan、App Service、Application Insights、Log Analytics 工作區,並將其全部連結在一起。 |
具有受控識別、SQL Server和 ΑΙ 的 Web 應用程式 |
針對應用程式 + 資料 + 受控識別 + 監視部署 Azure 基礎結構的簡單範例 |
使用 SQL Database 布建 Web 應用程式 |
此範本會布建 Web 應用程式、SQL Database、自動調整設定、警示規則和 App Insights。 它會在資料庫的 Web 應用程式中設定 連接字串。 |
Django 應用程式 |
此範本可讓您建立部署 Django 應用程式的 App Service。 |
ASP.NET 應用程式 |
此範本可讓您建立部署 ASP.NET 應用程式的 App Service。 |
Terraform (AzAPI 提供者) 資源定義
元件資源類型可以使用目標作業進行部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.Insights/components 資源,請將下列 Terraform 新增至您的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Insights/components@2020-02-02"
name = "string"
location = "string"
parent_id = "string"
tags = {
tagName1 = "tagValue1"
tagName2 = "tagValue2"
}
body = jsonencode({
properties = {
Application_Type = "string"
DisableIpMasking = bool
DisableLocalAuth = bool
Flow_Type = "Bluefield"
ForceCustomerStorageForProfiler = bool
HockeyAppId = "string"
ImmediatePurgeDataOn30Days = bool
IngestionMode = "string"
publicNetworkAccessForIngestion = "string"
publicNetworkAccessForQuery = "string"
Request_Source = "rest"
RetentionInDays = int
SamplingPercentage = "decimal-as-string"
WorkspaceResourceId = "string"
}
kind = "string"
etag = "string"
})
}
屬性值
components
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | “Microsoft.Insights/components@2020-02-02” |
NAME | 資源名稱 | 字串 (必要) 字元限制:1-260 合法字元: 不能使用: %&\?/ 或控制字元不能以空格或句號結尾。 |
location | 資源位置 | 字串 (必要) |
parent_id | 若要部署至資源群組,請使用該資源群組的標識碼。 | 字串 (必要) |
tags | 資源標籤 | 標記名稱和值的字典。 |
kind | 此元件參考的應用程式類型,用來自定義UI。 這個值是手繪多邊形字串,值通常應該是下列其中一項:web、ios、other、store、java、phone。 | 字串 (必要) |
etag | 資源 etag | 字串 |
properties | 定義 Application Insights 元件資源的屬性。 | ApplicationInsightsComponentProperties |
ApplicationInsightsComponentProperties
名稱 | 描述 | 值 |
---|---|---|
Application_Type | 受監視的應用程式類型。 | “other” “web” (必要) |
DisableIpMasking | 停用IP遮罩。 | bool |
DisableLocalAuth | 停用非 AAD 型驗證。 | bool |
Flow_Type | Application Insights 系統用來判斷此元件所建立的流程類型。 透過 REST API 建立 /更新元件時,這會設定為 'Bluefield'。 | “Bluefield” |
ForceCustomerStorageForProfiler | 強制使用者為分析工具和調試程式建立自己的記憶體帳戶。 | bool |
HockeyAppId | 將新應用程式新增至 HockeyApp 時所建立的唯一應用程式識別碼,用於與 HockeyApp 通訊。 | 字串 |
ImmediatePurgeDataOn30Days | 在 30 天后立即清除數據。 | bool |
IngestionMode | 表示擷取的流程。 | “ApplicationInsights” “ApplicationInsightsWithDiagnosticSettings” “LogAnalytics” |
publicNetworkAccessForIngestion | 用於存取 Application Insights 擷取的網路存取類型。 | “Disabled” “Enabled” |
publicNetworkAccessForQuery | 用於存取 Application Insights 查詢的網路存取類型。 | “Disabled” “Enabled” |
Request_Source | 描述哪些工具已建立此 Application Insights 元件。 使用此 API 的客戶應將此設定為預設 『rest』。 | “rest” |
RetentionInDays | 保留期限為天數。 | int |
SamplingPercentage | 正在針對 Application Insights 遙測取樣的應用程式所產生的數據百分比。 將十進位值指定為字串。 | int 或 json decimal |
WorkspaceResourceId | 要擷取數據的記錄分析工作區資源標識碼。 需要這個屬性,才能使用此 API 版本建立應用程式。 來自舊版的應用程式將不會有這個屬性。 | 字串 |