PrepAway - Latest Free Exam Questions & Answers

Which Azure Power Shell cmdlets and values should you use?

DRAG DROP
You administer an Azure Virtual Machine (VM) named CON-CL1. CON-CL1 is in a cloud
service named ContosoService1.
You discover unauthorized traffic to CON-CL1. You need to:
+ Create a rule to limit access to CON-CL1.
+ Ensure that the new rule has the highest
precedence.
Which Azure Power Shell cmdlets and values should you use? To answer, drag the
appropriate cmdlet or value to the correct location in the Power Shell command. Each cmdlet
or value may be used once, more than once, or not at all. You may need to drag the split bat
between panes or scroll to view content.

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:

18 Comments on “Which Azure Power Shell cmdlets and values should you use?

    1. challenge says:

      With PowerShell ‘0’ is an accepted value.

      -Order 0 is correct …

      # create a new ACL
      $acl = New-AzureAclConfig

      # add some rules to the ACL

      Set-AzureAclConfig -AddRule -ACL $acl -Order 0 -Action Permit -RemoteSubnet “1.2.3.4/32” -Description “Allow App01”

      Set-AzureAclConfig -AddRule -ACL $acl -Order 1 -Action Permit -RemoteSubnet “172.16.0.0/29” -Description “Allow corp proxies”

      Set-AzureAclConfig -AddRule -ACL $acl -Order 2 -Action Deny -RemoteSubnet “0.0.0.0/0” -Description “DenyAll”




      0



      0
  1. exam monkey says:

    The order should be ‘0’ as this is the lowest value (and so the highest priority). I have tested this and it works. The valid range is ‘0’ to ‘65535’




    0



    0
  2. ee says:

    IMHO -Order 0 is the correct answer as it is an Int32, so even though most examples found online start from 100, possible values are those stated by exam monkey, so 0 is the lowest and therefore higher precedence




    0



    0
  3. challenge says:

    From the official Microsoft 70-533 Study Book the “-Order 0” is a valid choice

    Set-AzureAclConfig -AddRule -ACL $acl -Order 0 -Action Permit -RemoteSubnet “171.100.0.1/24”

    We are limiting access by PERMITing the subnet only.

    Another crap Microsoft question with lack of detail IMHO! (who writes these!?)




    0



    0
  4. iAmSaugata says:

    This will be the correct,
    Set-AzureAclConfig -AddRule -ACL $acl -Order 100 -Action Permit -RemoteSubnet “171.100.0.1/24”

    The reason is, if we do not specify -Order, then it will b by default 0, since -Order is there, we have to select either 100 or 300, so the correct value will be 100.




    0



    0

Leave a Reply