Azure / Azure/bicep

Reference the deploying users originating Public IP Address

Open
#7,942 5 comments 0 reactions 0 assignees View on GitHub
enhancement Needs: Upvote
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

I am deploying a KeyVault, with public access denied and want to easily add my Public IP Address to the Keyvault Allow List.

In order to do this I add a parameter to the bicep, but I am reliant on the deploying user knowing their public ip address and passing the correct parameter value with the correct cidr notation.

It would be much cleaner if I could reference this within bicep itself, eg;

```bicep
param keyvaultAllowIP string = deployment().initiator.originatingIP
```

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the deployment() function exposes deployment metadata and whether Azure provides the deploying user's originating public IP. Check the Key Vault allow-list scenario and the proposed deployment().initiator.originatingIP expression. Done means establishing a supported way to reference the address, or documenting the limitation if that data is unavailable.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.