Omitir navegación

The Azure Quickstart templates are currently available in English

Create Azure Maps SAS token stored in an Azure Key Vault

Última actualización: 24/10/2021

This template deploys and Azure Maps account and lists a Sas token based on the provided User Assigned identity to be stored in an Azure Key Vault secret.

Esta plantilla de Azure Resource Manager (ARM) la creó un miembro de la comunidad, no Microsoft. Su propietario (no Microsoft) le permite usar las plantillas de ARM con arreglo a un contrato de licencia. Microsoft no se responsabiliza de ninguna plantilla de ARM que le proporcionen los miembros de la comunidad (o cuya licencia le otorguen) en cuanto a su seguridad, compatibilidad ni rendimiento. Las plantillas de ARM de la comunidad no reciben ningún tipo de soporte en ningún servicio ni programa de soporte de Microsoft. Dichas plantillas se proporcionan TAL CUAL, sin garantía de ningún tipo.

Parámetros

Nombre del parámetro Descripción
location Specifies the location for all the resources.
keyVaultName Specifies the resourceId of the key vault.
accountName The name for the Azure Maps account.
userAssignedIdentityResourceId Specifies the resourceId for the user assigned managed identity resource.
userAssignedIdentityPrincipalId Specifies the resourceId for the user assigned managed identity resource.
pricingTier The pricing tier for the account. Use S0 for small-scale development. Use S1 or G2 for large-scale applications.
kind The pricing tier for the account. Use Gen1 for small-scale development. Use Gen2 for large-scale applications.
startDateTime Current Universal DateTime in ISO 8601 'u' format to be used as start of the SAS Token.
duration The duration of the SAS Token, P1Y is maximum, ISO 8601 format is expected.
maxRatePerSecond The approximate maximum rate per second the SAS token can be used.
signingKey The specified signing key which will be used to create the SAS Token.
allowedOrigins The specified application's web host header origins (example: https://www.azure.com) which the Maps account allows for Cross Origin Resource Sharing (CORS).

Uso de la plantilla

PowerShell

New-AzResourceGroup -Name <resource-group-name> -Location <resource-group-location> #use this command when you need to create a new resource group for your deployment
New-AzResourceGroupDeployment -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.maps/maps-use-sas/azuredeploy.json
Instalar y configurar PowerShell de Azure

Línea de comandos

az group create --name <resource-group-name> --location <resource-group-location> #use this command when you need to create a new resource group for your deployment
az group deployment create --resource-group <my-resource-group> --template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.maps/maps-use-sas/azuredeploy.json
Instalación y configuración de la interfaz de línea de comandos multiplataforma de Azure