使用 ARM 的功能 App 上的运行时白名单 APIM IP
Runtime whitelist APIM IP on function App using ARM
我们首先提供APIM服务(apim.json),Post我们提供多功能应用程序。
所有的 ARM 模板都与其各自的参数文件分开。我们正在为 CI/CD.
使用 Azure Pipelines
- 管道 1 functionapp1.json
- 管道 2 functionapp2.json
- 管道 3 functionapp3.json
- 管道 4 apim.json
我们需要使用 ARM 模板应用 Access restriction on Function Apps. We want to add Access Restriction。
如何在运行时间获得APIM的VIP,以便在功能应用的访问限制部分将APIM的VIP列入白名单。每个功能应用程序和 APIM
的所有管道都是独立的
使用 API 并在 运行time(Powershell) 上获取值是一种选择。但是我们想使用 ARM 模板来处理它。
如有任何意见,我们将不胜感激。
请参阅 ARM 模板的 "reference" 函数:https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-resource#reference
在运行时使用了以下白名单。
"ipAddress": "[concat(reference(resourceId('Microsoft.ApiManagement/service', parameters('apimName')),'2019-01-01').publicIPAddresses[0], '/32')]"
我们首先提供APIM服务(apim.json),Post我们提供多功能应用程序。 所有的 ARM 模板都与其各自的参数文件分开。我们正在为 CI/CD.
使用 Azure Pipelines- 管道 1 functionapp1.json
- 管道 2 functionapp2.json
- 管道 3 functionapp3.json
- 管道 4 apim.json
我们需要使用 ARM 模板应用 Access restriction on Function Apps. We want to add Access Restriction。
如何在运行时间获得APIM的VIP,以便在功能应用的访问限制部分将APIM的VIP列入白名单。每个功能应用程序和 APIM
的所有管道都是独立的使用 API 并在 运行time(Powershell) 上获取值是一种选择。但是我们想使用 ARM 模板来处理它。
如有任何意见,我们将不胜感激。
请参阅 ARM 模板的 "reference" 函数:https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-resource#reference
在运行时使用了以下白名单。
"ipAddress": "[concat(reference(resourceId('Microsoft.ApiManagement/service', parameters('apimName')),'2019-01-01').publicIPAddresses[0], '/32')]"