HTTP
HTTP extension to perform HTTP calls from Bicep.
Community Maintained
| Version | 0.9.2 |
| Artifact | br:ghcr.io/maikvandergaag/bicep-ext-http:0.9.2 |
| Source | github.com/maikvandergaag/bicep-ext-http |
| Publisher | maikvandergaag |
| Licence | MIT |
| Category | HTTP |
Installation
Register the extension in bicepconfig.json:
{
"experimentalFeaturesEnabled": {
"localDeploy": true,
"ociEnabled": true
},
"implicitExtensions": [],
"extensions": {
"bicep-ext-http": "br:ghcr.io/maikvandergaag/bicep-ext-http:0.9.2"
}
}
Then reference it from your Bicep file:
extension bicep-ext-http
Authentication
Depending on the setup, the extension does not require any authentication.
Example
Perform specific HTTP calls: Actions:
targetScope = 'local'
extension http
var callBody = loadTextContent('sample/body.json')
resource getHttp 'httpcall' = {
name: 'getcall'
url: 'https://bicep-local.free.beeceptor.com'
method: 'Get'
}
resource postHttp 'httpcall' = {
name: 'postcall'
url: 'https://bicep-local.free.beeceptor.com'
method: 'Post'
headers: [
{name: 'Content-Type', value: 'application/json' }
]
body: callBody
}
resource deleteHttp 'httpcall' = {
name: 'deletecall'
url: 'https://bicep-local.free.beeceptor.com/1'
method: 'Delete'
}
output getResponse object = json(getHttp.result)
output getStatusCode int = getHttp.statusCode
output postResponse object = json(postHttp.result)
output postStatusCode int = postHttp.statusCode
output deleteStatusCode int = deleteHttp.statusCode
Samples
2 example Bicep files are available under Samples.
Resource types
This extension exposes 1 resource type, documented under Reference.
Reference generated from ghcr.io/maikvandergaag/bicep-ext-http:0.9.2 on 2026-09-08.