Share via

Creating a host Key using Bicep

Graham Allwood 306 Reputation points
2021-04-08T22:32:11.82+00:00

Hi,

Does anyone know how to create a Host key using Bicep (arm)? I ultimately want to set up an API Management instance to use my function app as a backend and I need to create a new host key in the functionapp for APIM to use.

Currently using Bicep as the language to drive my infrastructure as code :)

Thanks

Graham

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Mike Urnun 9,792 Reputation points Moderator
    2021-04-11T21:33:54.277+00:00

    Hi @Graham Allwood - I would stay in ARM for now and look to leverage the automation work that is done here: Azure API Management DevOps Resource Kit

    FYI that the APIM team is currently reviewing the adoption of Bicep (or migration to) for this DevOps Kit. As for generating the host keys for your Functions, there are REST endpoints that can be invoked at the respective abstraction in your ARM templates, please review: https://github.com/Azure/azure-functions-host/wiki/Key-management-API

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.