exam questions

Exam AZ-500 All Questions

View all questions & answers for the AZ-500 exam

Exam AZ-500 topic 4 question 94 discussion

Actual exam question from Microsoft's AZ-500
Question #: 94
Topic #: 4
[All AZ-500 Questions]

DRAG DROP
-

You have an Azure subscription that contains a resource group named RG1 and an Azure policy named Policy1.

You need to assign Policy1 to RG1.

How should you complete the script? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

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
AzureAdventure
Highly Voted 1 year, 2 months ago
1. Get-AzPolicyDefinition 2. New-AzPolicyAssignment https://learn.microsoft.com/en-us/powershell/module/az.resources/new-azpolicyassignment?view=azps-10.3.0&viewFallbackFrom=azps-10.0.0#example-1-policy-assignment-at-subscription-level:~:text=Example%202%3A-,Policy%20assignment%20at%20resource%20group%20level,-PowerShell
upvoted 7 times
...
tweleve
Highly Voted 1 year, 1 month ago
in exam 13 Oct
upvoted 7 times
...
husam421
Most Recent 11 months, 1 week ago
$Subscription = Get-AzSubscription -SubscriptionName 'Subscription01' $Policy = Get-AzPolicyDefinition -Name 'VirtualMachinePolicy' New-AzPolicyAssignment -Name 'VirtualMachinePolicyAssignment' -PolicyDefinition $Policy -Scope "/subscriptions/$($Subscription.Id)"
upvoted 2 times
...
ServerBrain
1 year, 5 months ago
Correct - define, define policy then assign..
upvoted 3 times
...
ITTesters
1 year, 5 months ago
Answers are correct; https://learn.microsoft.com/en-us/powershell/module/az.resources/new-azpolicyassignment?view=azps-10.0.0#example-1-policy-assignment-at-subscription-level
upvoted 4 times
...
billo79152718
1 year, 6 months ago
Given answers is correct!
upvoted 3 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 ...