Azure Administrator AZ-104 · Deploy and Manage Azure Compute Resources · medium

A platform engineering team has perfected a golden ARM / Bicep template for deploying compliant virtual networks and wants to store it as a versioned, first-class Azure resource inside a central resource group (RG-Templates) so other teams can deploy it via Azure RBAC read permissions without needing SAS tokens to a storage account or access to a private Git repo. Which Azure service should they use?

Published · Last updated · checked before publication — how we verify questions

Options

  • AAzure Compute Gallery (formerly Shared Image Gallery) definitions
  • BAzure Template Specs (Microsoft.Resources/templateSpecs)Correct answer
  • CAzure Bastion Developer SKU browser session connection templates
  • DAzure Recovery Services vault virtual machine backup policies

Answer: B. Azure Template Specs (Microsoft.Resources/templateSpecs)

Template Specs are the Azure feature built for this scenario. A template spec is an Azure resource of type Microsoft.Resources/templateSpecs that holds an ARM template, or a Bicep file that is compiled to JSON when published, and each update is saved as a numbered version. Because it is a real resource inside a resource group such as RG-Templates, access is controlled by Azure RBAC. Users who have read access to the spec can deploy it, and they do not need access to the underlying storage account or repository. This removes the need for SAS tokens on a blob URL and for credentials to a private Git repo, which are the usual alternatives for sharing templates. Deployments can reference the spec by resource ID and version, and it can also be used as a module in Bicep. The common trap is choosing Azure Compute Gallery because it is also a versioned, shareable resource. It versions VM images and applications, not infrastructure-as-code templates.

Why the other options are wrong

  • A. Azure Compute Gallery (formerly Shared Image Gallery) definitions — Azure Compute Gallery (formerly Shared Image Gallery) stores and shares versioned VM images and VM application packages, and it is shared through RBAC too. It has no ability to hold ARM or Bicep deployment templates, so it does not fit even though it is versioned.
  • C. Azure Bastion Developer SKU browser session connection templates — Azure Bastion Developer SKU gives browser-based RDP and SSH access to virtual machines without exposing public IP addresses. It is a connectivity service and has no concept of storing or versioning deployment templates.
  • D. Azure Recovery Services vault virtual machine backup policies — A Recovery Services vault holds backup data, recovery points and backup policies that define schedule and retention for protected VMs. It protects workloads and does not store or share infrastructure deployment templates.

All Deploy and Manage Azure Compute Resources questions and the topic overview →

Microsoft and Azure are trademarks of Microsoft Corporation. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Microsoft Corporation.