Skip to content

Commit a9b786f

Browse files
committed
added verify section
1 parent 2adb62a commit a9b786f

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

articles/storage-actions/storage-tasks/storage-task-quickstart-terraform.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,36 @@ In this how-to article, you'll learn how to create a storage task using Terrafor
7575

7676
[!INCLUDE [terraform-apply-plan.md](~/azure-dev-docs-pr/articles/terraform/includes/terraform-apply-plan.md)]
7777

78+
## Verify the results
79+
80+
#### [Azure PowerShell](#tab/azure-powershell)
81+
82+
1. Get the Azure resource group name.
83+
84+
```console
85+
$resource_group_name=$(terraform output -raw resource_group_name)
86+
```
87+
88+
1. Get the storage task name.
89+
90+
```console
91+
$storage_task_name=$(terraform output -raw storage_task_name)
92+
```
93+
94+
1. Ensure that the `ARM_SUBSCRIPTION_ID` environment variable is set to the Azure subscription IDl
95+
96+
```azurepowershell
97+
$env:ARM_SUBSCRIPTION_ID = <your_subscription_id>
98+
```
99+
100+
1. Run [Get-AzStorageActionTask](/powershell/module/az.storageaction/get-azstorageactiontask) to get the storage task properties.
101+
102+
```azurepowershell
103+
Get-AzStorageActionTask -Name $storage_task_name -ResourceGroupName $resource_group_name
104+
```
105+
106+
---
107+
78108
## Clean up resources
79109

80110
[!INCLUDE [terraform-plan-destroy.md](~/azure-dev-docs-pr/articles/terraform/includes/terraform-plan-destroy.md)]
@@ -83,7 +113,6 @@ In this how-to article, you'll learn how to create a storage task using Terrafor
83113

84114
[Troubleshoot common problems when using Terraform on Azure](/azure/developer/terraform/troubleshoot).
85115

86-
87116
## Next steps
88117

89118
[Create a storage task](storage-task-create.md)

0 commit comments

Comments
 (0)