exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 8 question 48 discussion

Actual exam question from Microsoft's AZ-400
Question #: 48
Topic #: 8
[All AZ-400 Questions]

HOTSPOT -
You are using PowerShell to administer Azure Log Analytics workspaces.
You need to list the available workspaces and their properties.
How should you complete the command? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: Get-AzResource -
Use the following command to examine the access control mode for all workspaces in the subscription:

PowerShell -
Get-AzResource -ResourceType Microsoft.OperationalInsights/workspaces -ExpandProperties | foreach {$_.Name + ": " +
$_.Properties.features.enableLogAccessUsingOnlyResourcePermissions

Box 2: -ResourceType -
Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/logs/manage-access

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
syu31svc
Highly Voted 2 years, 3 months ago
Answer is correct
upvoted 12 times
...
Pandur1
Highly Voted 2 years, 6 months ago
The answer is correct, but the explanation isn't. Reference: https://docs.microsoft.com/en-us/powershell/module/az.resources/get-azresource?view=azps-7.5.0 -> see Example 6
upvoted 6 times
...
vsvaid
Most Recent 11 months ago
Correct answer. As suggested by Panduri below
upvoted 1 times
...
yana_b
1 year, 1 month ago
The explanation is provided in the link pasted by Pandur1. Given answer is correct
upvoted 1 times
...
elequiel
1 year, 11 months ago
Correct
upvoted 1 times
...
1JD1
2 years, 6 months ago
Answer is correct
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago