Skip to main content

Azure Nsg

@randybias/azure-nsgv2026.10.17.1beta· 16d agoBEHAVIORS
01README

Inspect and delete an Azure network security group and converge its security rules through the Azure Resource Manager REST API with a service principal from a vault. One generic model type, keyed by subscription, resource group and NSG name, with rule convergence that plans before it applies.

02Behaviors1
@randybias/azure-nsgv2026.10.17.1azure_nsg.ts
fn get()
READ-ONLY. Fetch one NSG from Azure and store its state. Fails when the NSG does not exist.
fn sync()
READ-ONLY. Refresh stored NSG state; records status not_found instead of failing when the NSG is gone.
fn ensure_rule()
DESTRUCTIVE. Create or converge one security rule by name and store its state. Idempotent: an identical rule is a no-op with changed false.
fn remove_rule()
DESTRUCTIVE. Delete one security rule by name. Idempotent: an already-absent rule is a clean no-op with changed false.
fn apply_rule_set()
DESTRUCTIVE. Converge a declared set of security rules: create missing, update differing, leave undeclared rules alone. Plans first and only changes anything when apply is explicitly true.
fn delete()
DESTRUCTIVE. Delete this model's NSG and wait until Azure no longer returns it. Idempotent: an already-absent NSG is a clean no-op.

Resources

nsg(infinite)— Azure NSG state: id, location, provisioning state and rule count
rule(infinite)— One converged NSG security rule and its change flag
ruleSet(infinite)— The plan and applied set of one apply_rule_set call
03Stats
A
93 / 100
Downloads
2
Archive size
25.9 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License1/2partial

    no SPDX license declared

  • Verified public repository2/2earned
04Platforms
05Labels