title | description | ms.date | ms.topic | ms.service | ms.author | author | tags |
---|---|---|---|---|---|---|---|
Quickstart - Create an Azure Analysis Services server resource by using Bicep |
Quickstart showing how to an Azure Analysis Services server resource by using a Bicep file. |
03/08/2022 |
quickstart |
azure-analysis-services |
jgao |
mumian |
azure-resource-manager, bicep |
This quickstart describes how to create an Analysis Services server resource in your Azure subscription by using Bicep.
[!INCLUDE About Bicep]
- Azure subscription: Visit Azure Free Trial to create an account.
- Azure Active Directory: Your subscription must be associated with an Azure Active Directory tenant. And, you need to be signed in to Azure with an account in that Azure Active Directory. To learn more, see Authentication and user permissions.
The Bicep file used in this quickstart is from Azure quickstart templates.
:::code language="bicep" source="~/quickstart-templates/quickstarts/microsoft.analysisservices/analysis-services-create/main.bicep":::
A single Microsoft.AnalysisServices/servers resource with a firewall rule is defined in the Bicep file.
-
Save the Bicep file as main.bicep to your local computer.
-
Deploy the Bicep file using either Azure CLI or Azure PowerShell.
az group create --name exampleRG --location eastus az deployment group create --resource-group exampleRG --template-file main.bicep --parameters serverName=<analysis-service-name>
New-AzResourceGroup -Name exampleRG -Location eastus New-AzResourceGroupDeployment -ResourceGroupName exampleRG -TemplateFile ./main.bicep -serverName "<analysis-service-name>"
[!NOTE] Replace <analysis-service-name> with a unique analysis service name.
When the deployment finishes, you should see a message indicating the deployment succeeded.
Use the Azure portal or Azure PowerShell to verify the resource group and server resource was created.
Get-AzAnalysisServicesServer -Name <analysis-service-name>
When no longer needed, use the Azure portal, Azure CLI, or Azure PowerShell to delete the resource group and the server resource.
az group delete --name exampleRG
Remove-AzResourceGroup -Name exampleRG
In this quickstart, you used a Bicep file to create a new resource group and an Azure Analysis Services server resource. After you've created a server resource by using the template, consider the following:
[!div class="nextstepaction"] Quickstart: Configure server firewall - Portal