Azure Maps Account

This page shows how to write Terraform and Azure Resource Manager for Maps Account and write them securely.

azurerm_maps_account (Terraform)

The Account in Maps can be configured in Terraform with the resource name azurerm_maps_account. The following sections describe 5 examples of how to use the resource and its parameters.

Example Usage from GitHub

maps.tf#L2
resource "azurerm_maps_account" "map" {
  name                = var.maps_name
  resource_group_name = azurerm_resource_group.rg.name
  sku_name            = var.maps_sku
  tags                = var.tags
maps.tf#L1
resource "azurerm_maps_account" "map" {
  name                = var.maps_name
  resource_group_name = azurerm_resource_group.rg.name
  sku_name            = var.maps_sku
  tags                = var.tags
accounts.tf#L1
resource "azurerm_maps_account" "example" {
  name                = "example-maps-account"
  resource_group_name = azurerm_resource_group.example.name
  sku_name            = "S1"

  tags = {
main.tf#L7
resource "azurerm_maps_account" "this" {
  name                = var.name
  resource_group_name = var.resource_group_name
  sku_name            = var.sku_name
  tags                = var.tags

main.tf#L7
resource "azurerm_maps_account" "this" {
  name                = var.name
  resource_group_name = var.resource_group_name
  sku_name            = var.sku_name
  tags                = var.tags

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages an Azure Maps Account.

Microsoft.Maps/accounts (Azure Resource Manager)

The accounts in Microsoft.Maps can be configured in Azure Resource Manager with the resource name Microsoft.Maps/accounts. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

ListAccountsBySubscription.json#L13
            "type": "Microsoft.Maps/accounts",
            "location": "global",
            "tags": {
              "test": "true"
            },
            "sku": {
ListAccountsBySubscription.json#L13
            "type": "Microsoft.Maps/accounts",
            "location": "global",
            "tags": {
              "test": "true"
            },
            "sku": {
ListAccountsBySubscription.json#L13
            "type": "Microsoft.Maps/accounts",
            "location": "global",
            "tags": {
              "test": "true"
            },
            "sku": {
ListAccountsBySubscription.json#L13
            "type": "Microsoft.Maps/accounts",
            "location": "global",
            "tags": {
              "test": "true"
            },
            "sku": {
ListAccountsByResourceGroup.json#L15
            "type": "Microsoft.Maps/accounts",
            "location": "global",
            "tags": {
              "test": "true"
            },
            "sku": {
ListAccountsByResourceGroup.json#L15
            "type": "Microsoft.Maps/accounts",
            "location": "global",
            "tags": {
              "test": "true"
            },
            "sku": {
ListAccountsByResourceGroup.json#L15
            "type": "Microsoft.Maps/accounts",
            "location": "global",
            "tags": {
              "test": "true"
            },
            "sku": {
ListAccountsByResourceGroup.json#L15
            "type": "Microsoft.Maps/accounts",
            "location": "global",
            "tags": {
              "test": "true"
            },
            "sku": {
ListAccountsBySubscription.json#L13
            "type": "Microsoft.Maps/accounts",
            "location": "global",
            "tags": {
              "test": "true"
            },
            "sku": {
ListAccountsBySubscription.json#L13
            "type": "Microsoft.Maps/accounts",
            "location": "global",
            "tags": {
              "test": "true"
            },
            "sku": {

Parameters

  • apiVersion required - string
  • kind optional - string

    Get or Set Kind property.

  • location required - string

    The geo-location where the resource lives

  • name required - string

    The name of the Maps Account.

  • properties required
      • disableLocalAuth optional - boolean

        Allows toggle functionality on Azure Policy to disable Azure Maps local authentication support. This will disable Shared Keys authentication from any usage.

  • sku required
      • name required - string

        The name of the SKU, in standard format (such as S0).

  • tags optional - string

    Resource tags.

  • type required - string

Frequently asked questions

What is Azure Maps Account?

Azure Maps Account is a resource for Maps of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure Maps Account?

For Terraform, the Manuss20/trackmverse, Manuss20/azure.samples and dmaxim/wimc-net source code examples are useful. See the Terraform Example section for further details.

For Azure Resource Manager, the vladbarosan/azure-rest-api-specs-1, vladbarosan/azure-rest-api-specs-1 and assing/alerts-extension source code examples are useful. See the Azure Resource Manager Example section for further details.