How to Verify the Resources Created with Azure PowerShell
Once you have created resources in Azure, you can verify that they were created successfully by using the Get-AzResource cmdlet in Azure PowerShell.
The Get-AzResource cmdlet lists all of the resources in your subscription. You can filter the results to only show resources in a specific resource group by using the -ResourceGroupName parameter.
For example, the following command lists all of the resources in the ExerciseResources resource group:
Get-AzResource -ResourceGroupName ExerciseResources
The output of the Get-AzResource cmdlet shows the resource name, type, location, provisioning state, and tags.
You can also use the Format-Table cmdlet to format the output of the Get-AzResource cmdlet to make it more concise. The following command formats the output of the Get-AzResource cmdlet to show the resource name, type, and location:
Get-AzResource -ResourceGroupName ExerciseResources | Format-Table -Property Name,Type,Location
The output of the Get-AzResource cmdlet should show all of the resources that were created in the ExerciseResources resource group.
No comments:
Post a Comment