Azure Subscription Resource Creation Date and Time in RG1

Viewing Resource Creation Date and Time in Azure Subscription RG1

Question

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You have an Azure subscription named Subscription1. Subscription1 contains a resource group named RG1. RG1 contains resources that were deployed by using templates.

You need to view the date and time when the resources were created in RG1.

Solution: From the RG1 blade, you click Automation script.

Does this meet the goal?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B.

B

The solution presented in the question does not meet the goal of viewing the date and time when the resources were created in RG1.

Clicking on "Automation script" in the RG1 blade will show the ARM template used to deploy the resources, but it will not provide any information on the date and time when the resources were created.

To view the creation date and time of resources in RG1, you can use either the Azure Portal or Azure PowerShell.

Using Azure Portal:

  1. Go to the RG1 blade in the Azure Portal.
  2. Click on the "Resources" tab to view a list of resources in the resource group.
  3. In the list of resources, locate the resource whose creation date and time you want to view.
  4. Click on the resource to view its properties.
  5. In the resource properties, scroll down to the "Properties" section and look for the "Created at" field. The date and time when the resource was created will be displayed here.

Using Azure PowerShell:

  1. Open Azure PowerShell and connect to your Azure subscription using the Connect-AzAccount cmdlet.
  2. Use the Get-AzResource cmdlet to retrieve a list of resources in the RG1 resource group. You can specify the resource type and/or resource name to narrow down the list of resources.
  3. For each resource in the list, use the Get-AzResource cmdlet again with the -ResourceId parameter to retrieve the resource's properties.
  4. In the resource properties, look for the "createdTime" property. The value of this property will be the date and time when the resource was created.

Therefore, the correct answer to the question is B. No.