Proposed Pull Request Change

title titleSuffix description ms.service author ms.author ms.topic ms.custom ms.date
Quickstart: Create a storage task by using Bicep Azure Storage Actions Learn how to create a storage task by using Bicep. azure-storage-actions normesta normesta quickstart-bicep subject-bicepqs 05/05/2025
📄 Document Links
GitHub View on GitHub Microsoft Learn View on Microsoft Learn
Content Truncation Detected
The generated rewrite appears to be incomplete.
Original lines: -
Output lines: -
Ratio: -
Raw New Markdown
Generating updated version of doc...
Rendered New Markdown
Generating updated version of doc...
+0 -0
+0 -0
--- title: 'Quickstart: Create a storage task by using Bicep' titleSuffix: Azure Storage Actions description: Learn how to create a storage task by using Bicep. ms.service: azure-storage-actions author: normesta ms.author: normesta ms.topic: quickstart-bicep ms.custom: subject-bicepqs ms.date: 05/05/2025 --- # Quickstart: Create a storage task with Bicep This quickstart describes how to create a storage task by using Bicep. [!INCLUDE [About Bicep](~/reusable-content/ce-skilling/azure/includes/resource-manager-quickstart-bicep-introduction.md)] ## Prerequisites If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/pricing/purchase-options/azure-account?cid=msft_learn) before you begin. ## Review the Bicep file The Bicep file used in this quickstart is from [Azure Quickstart Templates](https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.storage.actions/storage-task/). :::code language="bicep" source="~/quickstart-templates/quickstarts/microsoft.storage.actions/storage-task/main.bicep"::: The [Microsoft.StorageActions/storageTasks](/azure/templates/microsoft.storageactions/2023-01-01/storagetasks) Azure resource is defined in the Bicep file. ## Deploy the Bicep file 1. Save the Bicep file as **main.bicep** to your local computer. 2. Deploy the Bicep file using either Azure CLI or Azure PowerShell. ### [Azure CLI](#tab/azure-cli) ```azurecli az group create --name exampleRG --location <region> az deployment group create --resource-group exampleRG --template-file main.bicep --parameters storageTaskName="<storage-task-name>" description="<description>" ``` ### [Azure PowerShell](#tab/azure-powershell) ```azurepowershell New-AzResourceGroup -Name exampleRG -Location <region> New-AzResourceGroupDeployment -ResourceGroupName exampleRG -TemplateFile ./main.bicep -storageTaskName "<storage-task-name>" -description "<description>" ``` --- ## Review deployed resources 1. In the Azure portal, search for _Storage Tasks_. Then, under **Services**, select **Storage tasks - Azure Storage Actions**. 2. In the list of storage tasks, search for the name of the storage task that you deployed. > [!div class="mx-imgBorder"] > ![Screenshot of the deployed storage task as it appears in the Azure portal.](../media/storage-tasks/storage-quickstart-bicep/deployed-storage-task-in-azure-portal.png) ## Clean up resources When no longer needed, delete the resource group. The resource group and all the resources in the resource group are deleted. Use the following command to delete the resource group and all its contained resources. ### [Azure CLI](#tab/azure-cli) ```azurecli-interactive az group delete --name <resource-group-name> ``` ### [Azure PowerShell](#tab/azure-powershell) ```azurepowershell-interactive Remove-AzResourceGroup -Name <resource-group-name> ``` --- Replace `<resource-group-name>` with the name of your resource group. ## Next steps Assign a storage task to a storage account. > [!div class="nextstepaction"] > [Create and manage a storage task assignment](storage-task-assignment-create.md)
Success! Branch created successfully. Create Pull Request on GitHub
Error: