Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>AzAdvertizerNew to Visual Studio Code? Get it now.
AzAdvertizer

AzAdvertizer

AzAdvertizer

|
529 installs
| (0) | Free
Azure Policy, RBAC role, Entra ID role and API permission, resource type and operation identifiers in Bicep, ARM, Terraform, PowerShell and YAML files become links and hovers to AzAdvertizer.net; deprecated policies and outdated API versions are flagged.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Azure Policy definitions, initiatives, RBAC built-in roles, Microsoft Entra ID roles and API permissions, resource types, resource provider operations and policy aliases in your Bicep, ARM, Terraform, PowerShell and YAML files become Ctrl+clickable links and hover cards that lead to the matching page on AzAdvertizer.net.

Hover cards on a role definition and a PowerShell script

Also available: the AzAdvertizer browser extension for Microsoft Edge and Google Chrome, which does the same on web pages and in the Azure portal. Edge Add-ons · both extensions

What is recognised

  • /providers/Microsoft.Authorization/policyDefinitions/<id> and bare policy GUIDs; ALZ, AMBA and community policy names below a management group scope → Policy definition page
  • /providers/Microsoft.Authorization/policySetDefinitions/<id> and bare initiative GUIDs → Initiative page
  • /providers/Microsoft.Authorization/roleDefinitions/<id> and bare role GUIDs → RBAC built-in role page
  • Roles by display name where only a role name can stand: Terraform role_definition_name = "Reader" and data "azurerm_role_definition" { name = "Contributor" }, PowerShell -RoleDefinitionName 'Reader', Azure CLI --role "Key Vault Secrets User", Bicep/AVM roleDefinitionIdOrName: 'Reader', JSON "roleDefinitionName" → RBAC built-in role page (the hover names the role id)
  • Microsoft.KeyVault/vaults@2024-11-01, "type": "Microsoft.KeyVault/vaults", resource ids (.../providers/Microsoft.KeyVault/vaults/myvault) → Resource type page (the hover notes when the file's API version is older than the latest)
  • Microsoft.Compute/virtualMachines/write, Microsoft.KeyVault/vaults/secrets/getSecret/action → Resource provider operation (granting roles, policies); wildcard patterns as role definitions grant them (Microsoft.Compute/*, Microsoft.Authorization/*/read) → the operations grid filtered by the pattern
  • Microsoft.Compute/virtualMachines/storageProfile.osDisk.managedDisk.id, Microsoft.Network/networkSecurityGroups/securityRules[*].access → Policy alias lookup
  • Entra ID role template ids (62e90394-69f5-4237-9190-012177145e10) → Entra ID role page
  • API permission ids (df021288-bdef-4463-88db-98f22de89214) and quoted names ("User.Read.All") → Entra ID API permission page
  • First-party application ids (00000003-0000-0000-c000-000000000000) → API permissions of that application

Bare GUIDs are only linked when the local index knows them, so random GUIDs stay untouched.

Operation hover in a role definition

API permission hover in a PowerShell script

Languages by default: Bicep, Bicep parameters, JSON, JSONC, ARM template, Terraform, PowerShell, YAML, Azure Pipelines, Markdown, plain text, shell scripts (bash, az CLI). Comments and PowerShell help blocks are scanned like code. Change the list with azadvertizer.languages. The extension activates when a file of one of these languages is opened.

Diagnostics

  • A deprecated policy definition or initiative, by the state AzAdvertizer tracks or a [Deprecated] display name, is a warning in the Problems panel.
  • A resource type written with an API version older than the latest stable one is an information, with a quick fix (Ctrl+.) that replaces it with the latest.
  • Both can be switched off: azadvertizer.diagnostics.deprecated, azadvertizer.diagnostics.apiVersion.

Commands

  • AzAdvertizer: Open identifier at cursor in AzAdvertizer (also in the editor context menu)
  • AzAdvertizer: Refresh the lookup index now
  • AzAdvertizer: Show lookup index info - the index in use and where the extension runs (see Troubleshooting)

Troubleshooting

Nothing is underlined or hovered:

  1. The file's language must be one of the configured languages (status bar, right) - a .bicep or .tf file without the Bicep / Terraform extension opens as plain text, which is covered since 1.2.3; other language ids go into azadvertizer.languages.
  2. In GitHub Codespaces and other remotes the extension has to be installed in the codespace (Extensions view: "Install in Codespaces"), not only locally.
  3. AzAdvertizer: Show lookup index info reports the host (desktop / web), the remote, the extension host kind, the index in use (bundled / cached / download), the last refresh result and the active editor's language. The details go to the AzAdvertizer output channel. If the command is missing, the extension did not activate: "Developer: Show Running Extensions" shows why.
  4. The index refresh needs https://www.azadvertizer.net reachable from the host the extension runs on. In the web editor (vscode.dev, github.dev) the refresh may be blocked by the browser (CORS); the bundled index then stays in use.

Data for other tools

The pipeline also publishes https://www.azadvertizer.net/skillData/polPolsetRole.json (gzip on the wire, about 1 MB; 7 MB raw): everything the site's three CSV exports say about policies, policy sets and RBAC roles as one normalised JSON - each entity once, keyed by id, lists as arrays, one spelling per effect, type values BuiltIn / Static / ALZ / AMBA / Community, names and descriptions as the definitions have them (the CSVs replace commas), both membership directions (policies[id].initiatives / initiatives[id].members, policies[id].roles / roles[id].policies). The file describes itself: schema, pages (the page URL per entity), counts, generated, attribution, notes. Built by scripts/build-skill-data.js from the CSVs and the grids' JSON files; meant for offline question answering (for example a Claude skill: which roles a DeployIfNotExists policy needs, what an initiative contains, which policies rely on a role). Refreshed daily with the site, Cache-Control: max-age=3600, conditional requests (If-None-Match) get a 304.

The lookup index itself, https://www.azadvertizer.net/vscode/index.json (620 KB gzip), is open to other readers too. Its rows are positional arrays; the file's schema block names the fields of every map, the short codes (type: a BuiltIn, as Static, b ALZ, c AMBA, d Community; state: g GA, p Preview, d Deprecated, ld likely deprecated; effectKind: p parameter default, f fixed; permission type: ar Application, oa Delegated, rs Resource-specific) and the page URL per entity. It is a resolver, shallow by design: ids, names, states, default effects, latest API versions. Depth is on the pages and in the skill data file.

How it works, privacy

The extension ships with a lookup index (data/index.json: names, categories, effects, versions, API versions, built from the same files the AzAdvertizer.net pages load in the browser) and resolves everything locally. Links need no network at all.

Once a day it checks AzAdvertizer.net for a newer index and keeps a local copy. Turn this off with azadvertizer.index.autoRefresh. Nothing else is sent, and the extension has no telemetry. Links carry utm_source=vscode so the site can count visits that come from the extension; the parameter carries no identifier.

Works in the desktop editor and in the web editor (vscode.dev, github.dev).

Settings

  • azadvertizer.site (default https://www.azadvertizer.net): Site the links point to and the index is refreshed from
  • azadvertizer.languages (default see above): Language ids with links and hovers
  • azadvertizer.links.enabled (default true): Document links (Ctrl+click)
  • azadvertizer.hover.enabled (default true): Hover cards
  • azadvertizer.features (default all true): Per kind: policy, initiative, role, entraRole, apiPermission, app, resourceType, operation, alias
  • azadvertizer.index.autoRefresh (default true): Background index refresh
  • azadvertizer.index.refreshHours (default 24): Hours between refresh checks
  • azadvertizer.diagnostics.deprecated (default true): warnings on deprecated policies and initiatives
  • azadvertizer.diagnostics.apiVersion (default true): information plus quick fix on outdated API versions
  • azadvertizer.maxFileSizeKB (default 2048): Larger files get no document links (hovers still work)

Development

npm install
npm run index          # data/index.json from the files the site's pages load (node scripts/build-index.js [--site <url>] [--offline])
npm run skilldata      # data/skillData/polPolsetRole.json from the three CSV exports (node scripts/build-skill-data.js [--site <url>] [--offline])
npm run build          # dist/extension.js (desktop) and dist/web/extension.js (web) via esbuild
npm test               # test/core-test.js (detection, resolution, hovers) and test/extension-test.js (activation against a fake VS Code API)
npm run package        # the .vsix (vsce)
npm run media          # README images from VS Code web (needs: npx @vscode/test-web --browser=none --quality stable --port 3011 --extensionDevelopmentPath . test/samples)

F5 in VS Code runs the extension (Run Extension / Run Web Extension) with the samples in test/samples.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft