共用方式為


Microsoft.Insights 元件 2018-05-01-preview

Bicep 資源定義

元件資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

言論

如需部署監視解決方案的指引,請參閱 使用 Bicep建立監視資源。

資源格式

若要建立 Microsoft.Insights/components 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.Insights/components@2018-05-01-preview' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  kind: 'string'
  properties: {
    Application_Type: 'string'
    DisableIpMasking: bool
    Flow_Type: 'Bluefield'
    HockeyAppId: 'string'
    ImmediatePurgeDataOn30Days: bool
    IngestionMode: 'string'
    publicNetworkAccessForIngestion: 'string'
    publicNetworkAccessForQuery: 'string'
    Request_Source: 'rest'
    RetentionInDays: int
    SamplingPercentage: json('decimal-as-string')
  }
}

屬性值

元件

名字 描述 價值
名字 資源名稱 字串 (必要)

字元限制:1-260

合法字元:
無法使用:
%&\?/ 或控制字元

不能以空格或句號結束。
位置 資源位置 字串 (必要)
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
此元件所參考的應用程式類型,用來自定義UI。 此值是手繪多邊形字串,值通常應該是下列其中一項:web、ios、其他、store、java、phone。 字串 (必要)
性能 定義 Application Insights 元件資源的屬性。 ApplicationInsightsComponentProperties

ApplicationInsightsComponentProperties

名字 描述 價值
Application_Type 要監視的應用程式類型。 'other'
'web' (必要)
DisableIpMasking 停用IP遮罩。 bool
Flow_Type Application Insights 系統用來判斷此元件所建立的流程類型。 透過 REST API 建立 /更新元件時,這會設定為 'Bluefield'。 'Bluefield'
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

快速入門範本

下列快速入門範本會部署此資源類型。

範本 描述
BrowserBox Azure Edition

部署至 Azure
此範本會在 Azure Ubuntu Server 22.04 LTS、Debian 11 或 RHEL 8.7 LVM VM 上部署 BrowserBox。
使用 Jenkins 和 Azure Web Apps Java CI/CD

部署至 Azure
這是使用 Jenkins 和 Azure Web Apps 的 Java CI/CD 範例。
肯蒂科·Xperience

部署至 Azure
此範本可協助在 Microsoft azure 中裝載肯蒂科 Xperience 環境所需的資源部署。
簡單的 Umbraco CMS Web 應用程式

部署至 Azure
此範本提供在 Azure App Service Web Apps 上部署 umbraco CMS Web 應用程式的簡單方式。
使用 Azure 防火牆 ILB App Service 環境

部署至 Azure
Resource Manager 範本和參數,示範如何使用 Azure 防火牆整合來部署 App Service 環境
Enterprise Governance-AppService、SQL DB、AD、OMS、Runbook

部署至 Azure
企業雲端採用,小型或大型,需要負責任且有效率的治理模型,才能從其雲端部署中衍生價值。 CloudWise (解決方案的程式代碼名稱),是 Azure 合作夥伴快速入門中提供的複合解決方案,是客戶、系統整合者和合作夥伴的採用啟用者,可提供自助式、自動化的治理和作業解決方案,著重於優化成本、改善應用程式的可靠性、降低商務風險。 此解決方案強調可見度和控制的核心治理要素。
使用 ILB ASE eShop 網站

部署至 Azure
App Service 環境是 Azure App Service 的進階服務方案選項,可提供完全隔離且專用的環境,以大規模安全地執行 Azure App Service 應用程式,包括 Web Apps、Mobile Apps 和 API Apps。
使用 SQL Database、Azure Cosmos DB、Azure 搜尋服務 Web 應用程式

部署至 Azure
此範本會布建 Web 應用程式、SQL Database、Azure Cosmos DB、Azure 搜尋服務和 Application Insights。
Azure Machine Learning 工作區

部署至 Azure
此範本會建立新的 Azure Machine Learning 工作區,以及加密的記憶體帳戶、KeyVault 和 Applications Insights 記錄
使用應用程式閘道在內部 VNet 中建立 API 管理

部署至 Azure
此範本示範如何在受 Azure 應用程式閘道保護的專用網上建立 Azure API 管理的實例。
部署簡單的 Azure Spring Apps 微服務應用程式

部署至 Azure
此範本會部署簡單的 Azure Spring Apps 微服務應用程式,以在 Azure 上執行。
使用 Azure Functions 來源 Front Door Standard/Premium

部署至 Azure
此範本會建立 Front Door Standard/Premium、Azure Functions 應用程式,並設定函式應用程式來驗證流量是否通過 Front Door 來源。
使用函式和 Private Link 服務 Azure Digital Twins

部署至 Azure
此範本會建立一個 Azure Digital Twins 服務,此服務會使用虛擬網路連線的 Azure 函式來設定,以透過私人連結端點與 Digital Twins 進行通訊。 它也會建立私人 DNS 區域,以允許從虛擬網路到私人端點內部子網 IP 位址的 Digital Twins 端點無縫主機名解析。 主機名會儲存為名稱為 『ADT_ENDPOINT』 的 Azure 函式設定。
部署 Application Insight 並在其中建立警示

部署至 Azure
此範本可讓您部署Application Insight,並在其中建立警示
Azure AI Studio 基本設定

部署至 Azure
這組範本示範如何使用基本設定來設定 Azure AI Studio,這表示已啟用公用因特網存取、Microsoft受控密鑰進行加密,以及 AI 資源的Microsoft受控識別設定。
Azure AI Studio 基本設定

部署至 Azure
這組範本示範如何使用基本設定來設定 Azure AI Studio,這表示已啟用公用因特網存取、Microsoft受控密鑰進行加密,以及 AI 資源的Microsoft受控識別設定。
使用 Microsoft Entra ID Authentication Azure AI Studio

部署至 Azure
這組範本示範如何使用相依資源的 Microsoft Entra ID 驗證來設定 Azure AI Studio,例如 Azure AI 服務和 Azure 記憶體。
使用多個數據集建立 AML 工作區 & 資料存放區

部署至 Azure
此範本會建立具有多個數據集的 Azure Machine Learning 工作區,& 數據存放區。
Azure Machine Learning 端對端安全設定

部署至 Azure
這組 Bicep 範本示範如何在安全設定中設定 Azure Machine Learning 端對端。 此參考實作包括工作區、計算叢集、計算實例和附加的私人 AKS 叢集。
Azure Machine Learning 端對端安全設定 (舊版)

部署至 Azure
這組 Bicep 範本示範如何在安全設定中設定 Azure Machine Learning 端對端。 此參考實作包括工作區、計算叢集、計算實例和附加的私人 AKS 叢集。
建立具有私人IP位址的 AKS 計算目標

部署至 Azure
此範本會在具有私人IP位址的指定 Azure Machine Learning 服務工作區中建立 AKS 計算目標。
建立 Azure Machine Learning 服務工作區

部署至 Azure
此部署範本會指定 Azure Machine Learning 工作區及其相關聯的資源,包括 Azure Key Vault、Azure 儲存體、Azure Application Insights 和 Azure Container Registry。 此組態描述開始使用 Azure Machine Learning 所需的最少資源集。
建立 Azure Machine Learning 服務工作區 (CMK)

部署至 Azure
此部署範本會指定 Azure Machine Learning 工作區及其相關聯的資源,包括 Azure Key Vault、Azure 儲存體、Azure Application Insights 和 Azure Container Registry。 此範例示範如何使用客戶管理的加密密鑰來設定 Azure Machine Learning 進行加密。
建立 Azure Machine Learning 服務工作區 (CMK)

部署至 Azure
此部署範本會指定如何使用加密密鑰,建立具有服務端加密的 Azure Machine Learning 工作區。
建立 Azure Machine Learning 服務工作區 (vnet)

部署至 Azure
此部署範本會指定 Azure Machine Learning 工作區及其相關聯的資源,包括 Azure Key Vault、Azure 儲存體、Azure Application Insights 和 Azure Container Registry。 此組態說明在網路隔離設定中開始使用 Azure Machine Learning 所需的資源集。
建立 Azure Machine Learning 服務工作區 (舊版)

部署至 Azure
此部署範本會指定 Azure Machine Learning 工作區及其相關聯的資源,包括 Azure Key Vault、Azure 儲存體、Azure Application Insights 和 Azure Container Registry。 此組態說明在網路隔離設定中開始使用 Azure Machine Learning 所需的資源集。
在 Azure API 管理 前建立 Azure Front Door

部署至 Azure
此範例示範如何在 Azure API 管理前使用 Azure Front Door 作為全域負載平衡器。
使用 Azure SQL 後端 App Service 環境

部署至 Azure
此範本會建立具有 Azure SQL 後端的 App Service 環境,以及私人端點,以及通常用於私人/隔離環境中的相關聯資源。
布建在 App Service 方案 上執行的函式應用程式

部署至 Azure
此範本會在專用主控方案上布建函式應用程式,這表示它會像任何 App Service 網站一樣執行並計費。
在取用方案上布建函式應用程式

部署至 Azure
此範本會在取用方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,而您每次執行都會計費,且不需任何常設資源承諾。 有其他範本可用於布建專用主控方案。
使用部署位置 布建取用方案函式

部署至 Azure
此範本會在取用方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,而您每次執行都會計費,且不需任何常設資源承諾。 有其他範本可用於布建專用主控方案。
裝載於專用方案上的 Azure 函式應用程式

部署至 Azure
此範本會在專用主控方案上布建函式應用程式,這表示它會像任何 App Service 網站一樣執行並計費。
使用部署位置 Azure 函式應用程式

部署至 Azure
此範本會在具有生產位置和其他部署位置的進階方案上布建函式應用程式。
使用事件中樞和受控識別 Azure 函式應用程式

部署至 Azure
他的範本會在Linux取用方案上布建 Azure 函式應用程式,以及事件中樞、Azure 記憶體和 Application Insights。 函式應用程式可以使用受控識別來連線到事件中樞和記憶體帳戶
裝載在Linux取用方案上的 Azure 函式應用程式

部署至 Azure
此範本會在Linux取用方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,而您每次執行都會計費,且不需任何常設資源承諾。
使用遠端建置 在 Linux 取用方案中 函式應用程式

部署至 Azure
此範本會在 Linux 取用方案上佈建函式應用程式,並在程式碼部署期間執行遠端建置。 應用程式會視需要執行,而您每次執行都會計費,且不需任何常設資源承諾。
裝載於進階方案上的 Azure 函式應用程式

部署至 Azure
此範本會在進階方案上布建函式應用程式。
私人函式應用程式和私人端點保護的記憶體

部署至 Azure
此範本會在具有私人端點的進階方案上布建函式應用程式,並透過私人端點與 Azure 記憶體通訊。
建立函式應用程式和私人端點保護的記憶體

部署至 Azure
此範本可讓您部署透過私人端點與 Azure 記憶體通訊的 Azure 函式應用程式。
使用虛擬網路整合 Azure 函式應用程式

部署至 Azure
此範本會在進階方案上布建函式應用程式,且已啟用區域虛擬網路整合至新建立的虛擬網路。
裝載於 Windows 取用方案上的 Azure 函式應用程式

部署至 Azure
此範本會在 Windows 使用量方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,而您每次執行都會計費,且不需任何常設資源承諾。
Azure 函式應用程式和 HTTP 觸發的函式

部署至 Azure
此範例會在範本中內嵌部署 Azure 函式應用程式和 HTTP 觸發的函式。 它也會部署 Key Vault,並使用函式應用程式的主機密鑰填入秘密。
部署已啟用 AZ 的 Azure 函式進階方案

部署至 Azure
此範本可讓您部署具有可用性區域支援的 Azure Function Premium 方案,包括已啟用可用性區域記憶體帳戶的可用性區域。
由 Azure Frontdoor 保護的 函式應用程式

部署至 Azure
此範本可讓您部署受 Azure Frontdoor Premium 保護及發佈的 Azure 進階函式。 Azure Frontdoor 與 Azure Functions 之間的 Conenction 受到 Azure Private Link 的保護。
使用 vnet 整合部署 Azure Function Premium 方案

部署至 Azure
此範本可讓您部署已啟用區域虛擬網路整合的 Azure Function Premium 方案至新建立的虛擬網路。
使用受控服務識別建立函式應用程式

部署至 Azure
使用針對記錄和計量設定的 Application Insights,建立已啟用受控服務識別的函式應用程式。
使用內部 API 管理和 Web 應用程式 應用程式閘道

部署至 Azure
應用程式閘道會將因特網流量路由傳送至虛擬網路(內部模式)API 管理實例,此實例會服務裝載於 Azure Web 應用程式中的 Web API。
Web 應用程式 w/ Application Insights 傳送至 Log Analytics

部署至 Azure
此範本將協助支援 microsoft.insights/components 的新 API 版本。 從 2020-02-02-preview WorkspaceID 開始,建立 Application Inisghts 時將會需要此範本。此範本會部署 App Service 方案、App Service、Application Insights、Log Analytics 工作區,並將其全部連結在一起。
具有受控識別、SQL Server 和 的 Web 應用程式

部署至 Azure
針對應用程式 + 資料 + 受控識別 + 監視部署 Azure 基礎結構的簡單範例
使用 SQL Database 布建 Web 應用程式

部署至 Azure
此範本會布建 Web 應用程式、SQL Database、自動調整設定、警示規則和 App Insights。 它會在資料庫的 Web 應用程式中設定連接字串。
Django 應用程式

部署至 Azure
此範本可讓您建立 App Service 來部署 Django 應用程式。
ASP.NET 應用程式

部署至 Azure
此範本可讓您建立 App Service 來部署 ASP.NET 應用程式。

ARM 樣本資源定義

元件資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

言論

如需部署監視解決方案的指引,請參閱 使用 Bicep建立監視資源。

資源格式

若要建立 Microsoft.Insights/components 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.Insights/components",
  "apiVersion": "2018-05-01-preview",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "kind": "string",
  "properties": {
    "Application_Type": "string",
    "DisableIpMasking": "bool",
    "Flow_Type": "Bluefield",
    "HockeyAppId": "string",
    "ImmediatePurgeDataOn30Days": "bool",
    "IngestionMode": "string",
    "publicNetworkAccessForIngestion": "string",
    "publicNetworkAccessForQuery": "string",
    "Request_Source": "rest",
    "RetentionInDays": "int",
    "SamplingPercentage": "[json('decimal-as-string')]"
  }
}

屬性值

元件

名字 描述 價值
類型 資源類型 'Microsoft.Insights/components'
apiVersion 資源 API 版本 '2018-05-01-preview'
名字 資源名稱 字串 (必要)

字元限制:1-260

合法字元:
無法使用:
%&\?/ 或控制字元

不能以空格或句號結束。
位置 資源位置 字串 (必要)
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
此元件所參考的應用程式類型,用來自定義UI。 此值是手繪多邊形字串,值通常應該是下列其中一項:web、ios、其他、store、java、phone。 字串 (必要)
性能 定義 Application Insights 元件資源的屬性。 ApplicationInsightsComponentProperties

ApplicationInsightsComponentProperties

名字 描述 價值
Application_Type 要監視的應用程式類型。 'other'
'web' (必要)
DisableIpMasking 停用IP遮罩。 bool
Flow_Type Application Insights 系統用來判斷此元件所建立的流程類型。 透過 REST API 建立 /更新元件時,這會設定為 'Bluefield'。 'Bluefield'
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

快速入門範本

下列快速入門範本會部署此資源類型。

範本 描述
BrowserBox Azure Edition

部署至 Azure
此範本會在 Azure Ubuntu Server 22.04 LTS、Debian 11 或 RHEL 8.7 LVM VM 上部署 BrowserBox。
使用 Jenkins 和 Azure Web Apps Java CI/CD

部署至 Azure
這是使用 Jenkins 和 Azure Web Apps 的 Java CI/CD 範例。
肯蒂科·Xperience

部署至 Azure
此範本可協助在 Microsoft azure 中裝載肯蒂科 Xperience 環境所需的資源部署。
簡單的 Umbraco CMS Web 應用程式

部署至 Azure
此範本提供在 Azure App Service Web Apps 上部署 umbraco CMS Web 應用程式的簡單方式。
使用 Azure 防火牆 ILB App Service 環境

部署至 Azure
Resource Manager 範本和參數,示範如何使用 Azure 防火牆整合來部署 App Service 環境
Enterprise Governance-AppService、SQL DB、AD、OMS、Runbook

部署至 Azure
企業雲端採用,小型或大型,需要負責任且有效率的治理模型,才能從其雲端部署中衍生價值。 CloudWise (解決方案的程式代碼名稱),是 Azure 合作夥伴快速入門中提供的複合解決方案,是客戶、系統整合者和合作夥伴的採用啟用者,可提供自助式、自動化的治理和作業解決方案,著重於優化成本、改善應用程式的可靠性、降低商務風險。 此解決方案強調可見度和控制的核心治理要素。
使用 ILB ASE eShop 網站

部署至 Azure
App Service 環境是 Azure App Service 的進階服務方案選項,可提供完全隔離且專用的環境,以大規模安全地執行 Azure App Service 應用程式,包括 Web Apps、Mobile Apps 和 API Apps。
使用 SQL Database、Azure Cosmos DB、Azure 搜尋服務 Web 應用程式

部署至 Azure
此範本會布建 Web 應用程式、SQL Database、Azure Cosmos DB、Azure 搜尋服務和 Application Insights。
Azure Machine Learning 工作區

部署至 Azure
此範本會建立新的 Azure Machine Learning 工作區,以及加密的記憶體帳戶、KeyVault 和 Applications Insights 記錄
使用應用程式閘道在內部 VNet 中建立 API 管理

部署至 Azure
此範本示範如何在受 Azure 應用程式閘道保護的專用網上建立 Azure API 管理的實例。
部署簡單的 Azure Spring Apps 微服務應用程式

部署至 Azure
此範本會部署簡單的 Azure Spring Apps 微服務應用程式,以在 Azure 上執行。
使用 Azure Functions 來源 Front Door Standard/Premium

部署至 Azure
此範本會建立 Front Door Standard/Premium、Azure Functions 應用程式,並設定函式應用程式來驗證流量是否通過 Front Door 來源。
使用函式和 Private Link 服務 Azure Digital Twins

部署至 Azure
此範本會建立一個 Azure Digital Twins 服務,此服務會使用虛擬網路連線的 Azure 函式來設定,以透過私人連結端點與 Digital Twins 進行通訊。 它也會建立私人 DNS 區域,以允許從虛擬網路到私人端點內部子網 IP 位址的 Digital Twins 端點無縫主機名解析。 主機名會儲存為名稱為 『ADT_ENDPOINT』 的 Azure 函式設定。
部署 Application Insight 並在其中建立警示

部署至 Azure
此範本可讓您部署Application Insight,並在其中建立警示
Azure AI Studio 基本設定

部署至 Azure
這組範本示範如何使用基本設定來設定 Azure AI Studio,這表示已啟用公用因特網存取、Microsoft受控密鑰進行加密,以及 AI 資源的Microsoft受控識別設定。
Azure AI Studio 基本設定

部署至 Azure
這組範本示範如何使用基本設定來設定 Azure AI Studio,這表示已啟用公用因特網存取、Microsoft受控密鑰進行加密,以及 AI 資源的Microsoft受控識別設定。
使用 Microsoft Entra ID Authentication Azure AI Studio

部署至 Azure
這組範本示範如何使用相依資源的 Microsoft Entra ID 驗證來設定 Azure AI Studio,例如 Azure AI 服務和 Azure 記憶體。
使用多個數據集建立 AML 工作區 & 資料存放區

部署至 Azure
此範本會建立具有多個數據集的 Azure Machine Learning 工作區,& 數據存放區。
Azure Machine Learning 端對端安全設定

部署至 Azure
這組 Bicep 範本示範如何在安全設定中設定 Azure Machine Learning 端對端。 此參考實作包括工作區、計算叢集、計算實例和附加的私人 AKS 叢集。
Azure Machine Learning 端對端安全設定 (舊版)

部署至 Azure
這組 Bicep 範本示範如何在安全設定中設定 Azure Machine Learning 端對端。 此參考實作包括工作區、計算叢集、計算實例和附加的私人 AKS 叢集。
建立具有私人IP位址的 AKS 計算目標

部署至 Azure
此範本會在具有私人IP位址的指定 Azure Machine Learning 服務工作區中建立 AKS 計算目標。
建立 Azure Machine Learning 服務工作區

部署至 Azure
此部署範本會指定 Azure Machine Learning 工作區及其相關聯的資源,包括 Azure Key Vault、Azure 儲存體、Azure Application Insights 和 Azure Container Registry。 此組態描述開始使用 Azure Machine Learning 所需的最少資源集。
建立 Azure Machine Learning 服務工作區 (CMK)

部署至 Azure
此部署範本會指定 Azure Machine Learning 工作區及其相關聯的資源,包括 Azure Key Vault、Azure 儲存體、Azure Application Insights 和 Azure Container Registry。 此範例示範如何使用客戶管理的加密密鑰來設定 Azure Machine Learning 進行加密。
建立 Azure Machine Learning 服務工作區 (CMK)

部署至 Azure
此部署範本會指定如何使用加密密鑰,建立具有服務端加密的 Azure Machine Learning 工作區。
建立 Azure Machine Learning 服務工作區 (vnet)

部署至 Azure
此部署範本會指定 Azure Machine Learning 工作區及其相關聯的資源,包括 Azure Key Vault、Azure 儲存體、Azure Application Insights 和 Azure Container Registry。 此組態說明在網路隔離設定中開始使用 Azure Machine Learning 所需的資源集。
建立 Azure Machine Learning 服務工作區 (舊版)

部署至 Azure
此部署範本會指定 Azure Machine Learning 工作區及其相關聯的資源,包括 Azure Key Vault、Azure 儲存體、Azure Application Insights 和 Azure Container Registry。 此組態說明在網路隔離設定中開始使用 Azure Machine Learning 所需的資源集。
在 Azure API 管理 前建立 Azure Front Door

部署至 Azure
此範例示範如何在 Azure API 管理前使用 Azure Front Door 作為全域負載平衡器。
使用 Azure SQL 後端 App Service 環境

部署至 Azure
此範本會建立具有 Azure SQL 後端的 App Service 環境,以及私人端點,以及通常用於私人/隔離環境中的相關聯資源。
布建在 App Service 方案 上執行的函式應用程式

部署至 Azure
此範本會在專用主控方案上布建函式應用程式,這表示它會像任何 App Service 網站一樣執行並計費。
在取用方案上布建函式應用程式

部署至 Azure
此範本會在取用方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,而您每次執行都會計費,且不需任何常設資源承諾。 有其他範本可用於布建專用主控方案。
使用部署位置 布建取用方案函式

部署至 Azure
此範本會在取用方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,而您每次執行都會計費,且不需任何常設資源承諾。 有其他範本可用於布建專用主控方案。
裝載於專用方案上的 Azure 函式應用程式

部署至 Azure
此範本會在專用主控方案上布建函式應用程式,這表示它會像任何 App Service 網站一樣執行並計費。
使用部署位置 Azure 函式應用程式

部署至 Azure
此範本會在具有生產位置和其他部署位置的進階方案上布建函式應用程式。
使用事件中樞和受控識別 Azure 函式應用程式

部署至 Azure
他的範本會在Linux取用方案上布建 Azure 函式應用程式,以及事件中樞、Azure 記憶體和 Application Insights。 函式應用程式可以使用受控識別來連線到事件中樞和記憶體帳戶
裝載在Linux取用方案上的 Azure 函式應用程式

部署至 Azure
此範本會在Linux取用方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,而您每次執行都會計費,且不需任何常設資源承諾。
使用遠端建置 在 Linux 取用方案中 函式應用程式

部署至 Azure
此範本會在 Linux 取用方案上佈建函式應用程式,並在程式碼部署期間執行遠端建置。 應用程式會視需要執行,而您每次執行都會計費,且不需任何常設資源承諾。
裝載於進階方案上的 Azure 函式應用程式

部署至 Azure
此範本會在進階方案上布建函式應用程式。
私人函式應用程式和私人端點保護的記憶體

部署至 Azure
此範本會在具有私人端點的進階方案上布建函式應用程式,並透過私人端點與 Azure 記憶體通訊。
建立函式應用程式和私人端點保護的記憶體

部署至 Azure
此範本可讓您部署透過私人端點與 Azure 記憶體通訊的 Azure 函式應用程式。
使用虛擬網路整合 Azure 函式應用程式

部署至 Azure
此範本會在進階方案上布建函式應用程式,且已啟用區域虛擬網路整合至新建立的虛擬網路。
裝載於 Windows 取用方案上的 Azure 函式應用程式

部署至 Azure
此範本會在 Windows 使用量方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,而您每次執行都會計費,且不需任何常設資源承諾。
Azure 函式應用程式和 HTTP 觸發的函式

部署至 Azure
此範例會在範本中內嵌部署 Azure 函式應用程式和 HTTP 觸發的函式。 它也會部署 Key Vault,並使用函式應用程式的主機密鑰填入秘密。
部署已啟用 AZ 的 Azure 函式進階方案

部署至 Azure
此範本可讓您部署具有可用性區域支援的 Azure Function Premium 方案,包括已啟用可用性區域記憶體帳戶的可用性區域。
由 Azure Frontdoor 保護的 函式應用程式

部署至 Azure
此範本可讓您部署受 Azure Frontdoor Premium 保護及發佈的 Azure 進階函式。 Azure Frontdoor 與 Azure Functions 之間的 Conenction 受到 Azure Private Link 的保護。
使用 vnet 整合部署 Azure Function Premium 方案

部署至 Azure
此範本可讓您部署已啟用區域虛擬網路整合的 Azure Function Premium 方案至新建立的虛擬網路。
使用受控服務識別建立函式應用程式

部署至 Azure
使用針對記錄和計量設定的 Application Insights,建立已啟用受控服務識別的函式應用程式。
使用內部 API 管理和 Web 應用程式 應用程式閘道

部署至 Azure
應用程式閘道會將因特網流量路由傳送至虛擬網路(內部模式)API 管理實例,此實例會服務裝載於 Azure Web 應用程式中的 Web API。
Web 應用程式 w/ Application Insights 傳送至 Log Analytics

部署至 Azure
此範本將協助支援 microsoft.insights/components 的新 API 版本。 從 2020-02-02-preview WorkspaceID 開始,建立 Application Inisghts 時將會需要此範本。此範本會部署 App Service 方案、App Service、Application Insights、Log Analytics 工作區,並將其全部連結在一起。
具有受控識別、SQL Server 和 的 Web 應用程式

部署至 Azure
針對應用程式 + 資料 + 受控識別 + 監視部署 Azure 基礎結構的簡單範例
使用 SQL Database 布建 Web 應用程式

部署至 Azure
此範本會布建 Web 應用程式、SQL Database、自動調整設定、警示規則和 App Insights。 它會在資料庫的 Web 應用程式中設定連接字串。
Django 應用程式

部署至 Azure
此範本可讓您建立 App Service 來部署 Django 應用程式。
ASP.NET 應用程式

部署至 Azure
此範本可讓您建立 App Service 來部署 ASP.NET 應用程式。

Terraform (AzAPI 提供者) 資源定義

元件資源類型可以使用目標作業來部署:

  • 資源群組

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.Insights/components 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Insights/components@2018-05-01-preview"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      Application_Type = "string"
      DisableIpMasking = bool
      Flow_Type = "Bluefield"
      HockeyAppId = "string"
      ImmediatePurgeDataOn30Days = bool
      IngestionMode = "string"
      publicNetworkAccessForIngestion = "string"
      publicNetworkAccessForQuery = "string"
      Request_Source = "rest"
      RetentionInDays = int
      SamplingPercentage = "decimal-as-string"
    }
    kind = "string"
  })
}

屬性值

元件

名字 描述 價值
類型 資源類型 “Microsoft.Insights/components@2018-05-01-preview”
名字 資源名稱 字串 (必要)

字元限制:1-260

合法字元:
無法使用:
%&\?/ 或控制字元

不能以空格或句號結束。
位置 資源位置 字串 (必要)
parent_id 若要部署至資源群組,請使用該資源群組的標識碼。 字串 (必要)
標籤 資源標籤 標記名稱和值的字典。
此元件所參考的應用程式類型,用來自定義UI。 此值是手繪多邊形字串,值通常應該是下列其中一項:web、ios、其他、store、java、phone。 字串 (必要)
性能 定義 Application Insights 元件資源的屬性。 ApplicationInsightsComponentProperties

ApplicationInsightsComponentProperties

名字 描述 價值
Application_Type 要監視的應用程式類型。 “other”
“web” (必要)
DisableIpMasking 停用IP遮罩。 bool
Flow_Type Application Insights 系統用來判斷此元件所建立的流程類型。 透過 REST API 建立 /更新元件時,這會設定為 'Bluefield'。 “Bluefield”
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