Lewati Navigasi

Templat Azure Quickstart saat ini tersedia dalam bahasa Inggris

Create Azure Maps SAS token stored in an Azure Key Vault

Terakhir diperbarui: 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.

Templat Azure Resource Manager ini dibuat oleh anggota komunitas dan bukan oleh Microsoft. Setiap templat Resource Manager dilisensikan kepada Anda berdasarkan perjanjian lisensi oleh pemiliknya, bukan Microsoft. Microsoft tidak bertanggung jawab atas templat Resource Manager yang disediakan dan dilisensikan oleh anggota komunitas dan tidak menyaring keamanan, kompatibilitas, atau performa. Templat Community Resource Manager tidak didukung di bawah program atau layanan dukungan Microsoft apa pun, dan tersedia SEBAGAIMANA ADANYA tanpa jaminan apa pun.

Parameter

Nama Parameter Deskripsi
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).

Menggunakan templat

Windows 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
Menginstal dan mengonfigurasi Azure PowerShell

Baris perintah

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
Menginstal dan Mengonfigurasi Azure Cross-Platform Command-Line Interface