We recommend using Azure Native.
azure.maps.Creator
Explore with Pulumi AI
Manages an Azure Maps Creator.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var exampleAccount = new Azure.Maps.Account("exampleAccount", new()
{
ResourceGroupName = exampleResourceGroup.Name,
SkuName = "G2",
Tags =
{
{ "environment", "Test" },
},
});
var exampleCreator = new Azure.Maps.Creator("exampleCreator", new()
{
MapsAccountId = exampleAccount.Id,
Location = exampleResourceGroup.Location,
StorageUnits = 1,
Tags =
{
{ "environment", "Test" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/maps"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleAccount, err := maps.NewAccount(ctx, "exampleAccount", &maps.AccountArgs{
ResourceGroupName: exampleResourceGroup.Name,
SkuName: pulumi.String("G2"),
Tags: pulumi.StringMap{
"environment": pulumi.String("Test"),
},
})
if err != nil {
return err
}
_, err = maps.NewCreator(ctx, "exampleCreator", &maps.CreatorArgs{
MapsAccountId: exampleAccount.ID(),
Location: exampleResourceGroup.Location,
StorageUnits: pulumi.Int(1),
Tags: pulumi.StringMap{
"environment": pulumi.String("Test"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.maps.Account;
import com.pulumi.azure.maps.AccountArgs;
import com.pulumi.azure.maps.Creator;
import com.pulumi.azure.maps.CreatorArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.skuName("G2")
.tags(Map.of("environment", "Test"))
.build());
var exampleCreator = new Creator("exampleCreator", CreatorArgs.builder()
.mapsAccountId(exampleAccount.id())
.location(exampleResourceGroup.location())
.storageUnits(1)
.tags(Map.of("environment", "Test"))
.build());
}
}
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_account = azure.maps.Account("exampleAccount",
resource_group_name=example_resource_group.name,
sku_name="G2",
tags={
"environment": "Test",
})
example_creator = azure.maps.Creator("exampleCreator",
maps_account_id=example_account.id,
location=example_resource_group.location,
storage_units=1,
tags={
"environment": "Test",
})
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleAccount = new azure.maps.Account("exampleAccount", {
resourceGroupName: exampleResourceGroup.name,
skuName: "G2",
tags: {
environment: "Test",
},
});
const exampleCreator = new azure.maps.Creator("exampleCreator", {
mapsAccountId: exampleAccount.id,
location: exampleResourceGroup.location,
storageUnits: 1,
tags: {
environment: "Test",
},
});
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
properties:
location: West Europe
exampleAccount:
type: azure:maps:Account
properties:
resourceGroupName: ${exampleResourceGroup.name}
skuName: G2
tags:
environment: Test
exampleCreator:
type: azure:maps:Creator
properties:
mapsAccountId: ${exampleAccount.id}
location: ${exampleResourceGroup.location}
storageUnits: 1
tags:
environment: Test
Create Creator Resource
new Creator(name: string, args: CreatorArgs, opts?: CustomResourceOptions);
@overload
def Creator(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
maps_account_id: Optional[str] = None,
name: Optional[str] = None,
storage_units: Optional[int] = None,
tags: Optional[Mapping[str, str]] = None)
@overload
def Creator(resource_name: str,
args: CreatorArgs,
opts: Optional[ResourceOptions] = None)
func NewCreator(ctx *Context, name string, args CreatorArgs, opts ...ResourceOption) (*Creator, error)
public Creator(string name, CreatorArgs args, CustomResourceOptions? opts = null)
public Creator(String name, CreatorArgs args)
public Creator(String name, CreatorArgs args, CustomResourceOptions options)
type: azure:maps:Creator
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CreatorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CreatorArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CreatorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CreatorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CreatorArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Creator Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Creator resource accepts the following input properties:
- Maps
Account stringId The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
- Storage
Units int The storage units to be allocated. Integer values from 1 to 100, inclusive.
- Location string
The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
- Name string
The name of the Azure Maps Creator. Changing this forces a new resource to be created.
- Dictionary<string, string>
A mapping of tags which should be assigned to the Azure Maps Creator.
- Maps
Account stringId The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
- Storage
Units int The storage units to be allocated. Integer values from 1 to 100, inclusive.
- Location string
The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
- Name string
The name of the Azure Maps Creator. Changing this forces a new resource to be created.
- map[string]string
A mapping of tags which should be assigned to the Azure Maps Creator.
- maps
Account StringId The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
- storage
Units Integer The storage units to be allocated. Integer values from 1 to 100, inclusive.
- location String
The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
- name String
The name of the Azure Maps Creator. Changing this forces a new resource to be created.
- Map<String,String>
A mapping of tags which should be assigned to the Azure Maps Creator.
- maps
Account stringId The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
- storage
Units number The storage units to be allocated. Integer values from 1 to 100, inclusive.
- location string
The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
- name string
The name of the Azure Maps Creator. Changing this forces a new resource to be created.
- {[key: string]: string}
A mapping of tags which should be assigned to the Azure Maps Creator.
- maps_
account_ strid The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
- storage_
units int The storage units to be allocated. Integer values from 1 to 100, inclusive.
- location str
The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
- name str
The name of the Azure Maps Creator. Changing this forces a new resource to be created.
- Mapping[str, str]
A mapping of tags which should be assigned to the Azure Maps Creator.
- maps
Account StringId The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
- storage
Units Number The storage units to be allocated. Integer values from 1 to 100, inclusive.
- location String
The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
- name String
The name of the Azure Maps Creator. Changing this forces a new resource to be created.
- Map<String>
A mapping of tags which should be assigned to the Azure Maps Creator.
Outputs
All input properties are implicitly available as output properties. Additionally, the Creator resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing Creator Resource
Get an existing Creator resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CreatorState, opts?: CustomResourceOptions): Creator
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
maps_account_id: Optional[str] = None,
name: Optional[str] = None,
storage_units: Optional[int] = None,
tags: Optional[Mapping[str, str]] = None) -> Creator
func GetCreator(ctx *Context, name string, id IDInput, state *CreatorState, opts ...ResourceOption) (*Creator, error)
public static Creator Get(string name, Input<string> id, CreatorState? state, CustomResourceOptions? opts = null)
public static Creator get(String name, Output<String> id, CreatorState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Location string
The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
- Maps
Account stringId The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
- Name string
The name of the Azure Maps Creator. Changing this forces a new resource to be created.
- Storage
Units int The storage units to be allocated. Integer values from 1 to 100, inclusive.
- Dictionary<string, string>
A mapping of tags which should be assigned to the Azure Maps Creator.
- Location string
The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
- Maps
Account stringId The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
- Name string
The name of the Azure Maps Creator. Changing this forces a new resource to be created.
- Storage
Units int The storage units to be allocated. Integer values from 1 to 100, inclusive.
- map[string]string
A mapping of tags which should be assigned to the Azure Maps Creator.
- location String
The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
- maps
Account StringId The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
- name String
The name of the Azure Maps Creator. Changing this forces a new resource to be created.
- storage
Units Integer The storage units to be allocated. Integer values from 1 to 100, inclusive.
- Map<String,String>
A mapping of tags which should be assigned to the Azure Maps Creator.
- location string
The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
- maps
Account stringId The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
- name string
The name of the Azure Maps Creator. Changing this forces a new resource to be created.
- storage
Units number The storage units to be allocated. Integer values from 1 to 100, inclusive.
- {[key: string]: string}
A mapping of tags which should be assigned to the Azure Maps Creator.
- location str
The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
- maps_
account_ strid The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
- name str
The name of the Azure Maps Creator. Changing this forces a new resource to be created.
- storage_
units int The storage units to be allocated. Integer values from 1 to 100, inclusive.
- Mapping[str, str]
A mapping of tags which should be assigned to the Azure Maps Creator.
- location String
The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
- maps
Account StringId The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
- name String
The name of the Azure Maps Creator. Changing this forces a new resource to be created.
- storage
Units Number The storage units to be allocated. Integer values from 1 to 100, inclusive.
- Map<String>
A mapping of tags which should be assigned to the Azure Maps Creator.
Import
An Azure Maps Creators can be imported using the resource id
, e.g.
$ pulumi import azure:maps/creator:Creator example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Maps/accounts/account1/creators/creator1
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.