Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AZ-103 topic 5 question 1 discussion

Actual exam question from Microsoft's AZ-103
Question #: 1
Topic #: 5
[All AZ-103 Questions]

You have two Azure Active Directory (Azure AD) tenants named contoso.com and fabrikam.com.
You have a Microsoft account that you use to sign in to both tenants.
You need to configure the default sign-in tenant for the Azure portal.
What should you do?

  • A. From Azure Cloud Shell, run Set-AzureRmSubscription.
  • B. From Azure Cloud Shell, run Set-AzureRmContext.
  • C. From the Azure portal, configure the portal settings.
  • D. From the Azure portal, change the directory.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
The Set-AzureRmContext cmdlet sets authentication information for cmdlets that you run in the current session. The context includes tenant, subscription, and environment information.
References:
https://docs.microsoft.com/en-us/powershell/module/azurerm.profile/set-azurermcontext

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
JohnCrawford
Highly Voted 4 years, 6 months ago
I believe the correct answer is D. I have multiple tenants and that's how I set my default.
upvoted 53 times
...
Rhiyers
Highly Voted 4 years, 2 months ago
Let's analyze the answers A. From Azure Cloud Shell, run Set-AzureRmSubscription. R: Allows you to configure the subscription to connect to by default. This does not solve the requested B. From Azure Cloud Shell, run Set-AzureRmContext. - It allows you to configure the directory and subscription to which you want to connect by default. this meets the request. C. From the Azure portal, configure the portal settings. From the portal settings you cannot define the default directory to which you want to connect. It does not comply with what is required. D. From the Azure portal, change the directory. Response D refers to changing the directory, but not specific in which option of the entire portal the change can be made.
upvoted 19 times
Raikage
3 years, 8 months ago
A is the correct answer. Even from your post, you say "Allows you to configure the subscription to connect to by default". See https://docs.microsoft.com/en-us/powershell/module/servicemanagement/azure.service/select-azuresubscription?view=azuresmps-4.0.0
upvoted 1 times
_syamantak
3 years, 8 months ago
Nope. Set-AzureRmSubscription is to set the subscription in Powershell cmdlet
upvoted 1 times
...
...
misosan1
2 years, 10 months ago
Set-AzureRmContext: "Sets the tenant, subscription, and environment for cmdlets to use ---> in the current session.<-----". So it is not valid. https://docs.microsoft.com/en-us/powershell/module/azurerm.profile/set-azurermcontext?view=azurermps-6.13.0
upvoted 2 times
...
...
tashakori
Most Recent 1 month ago
C is correct
upvoted 1 times
...
Amir1909
2 months ago
C is correct
upvoted 1 times
...
sakibmas
8 months, 3 weeks ago
Selected Answer: C
Choose one of the following options for the directory to work in when you first sign in to the Azure portal. 1) Sign in to your last visited directory: When you sign in to the Azure portal, you'll start in whichever directory you'd been working in last time. 2) Select a directory: Choose this option to select one of your directories. You'll start in that directory every time you sign in to the Azure portal, even if you had been working in a different directory last time. Reference: https://learn.microsoft.com/en-us/azure/azure-portal/set-preferences
upvoted 2 times
...
downlinkvip
2 years, 7 months ago
D is correct.
upvoted 1 times
...
tendymadu
3 years ago
Answer is C. From the Azure portal, configure the portal settings. on Switch directory tab you can set your default directory.
upvoted 2 times
...
I
3 years, 1 month ago
D is correct. To get started: 1. Go to Subscriptions. 2. Select a subscription. 3. Select Change directory. Incorrect Answers: C: The Set-AzureRmContext cmdlet sets authentication information for cmdlets that you run in the current session. The context includes tenant, subscription, and environment information. References: https://azure.microsoft.com/en-us/updates/edit-directory-now-in-new-portal/
upvoted 3 times
...
sjccde
3 years, 5 months ago
I just tested both, C and D: From Portal Settings you get a shortcut link to set a default directory/tenant; you will be redirected to "Directory & Subscription filter" to choose between "last visited tenenat" or a specific one. So "Portal Settings" can guide the way but it is not really inside it! From Switch Tenant you can highlight a tenant and make it default. I think that's what was asked for, so I propose anwser D.
upvoted 3 times
...
Thi
3 years, 5 months ago
answer is D just tested D. From the Azure portal, change the directory.
upvoted 2 times
...
sohailn
3 years, 6 months ago
answer is D tested and verified, Please test it and dont waste too much time on arguments.
upvoted 3 times
...
leo815
3 years, 6 months ago
Every single comment has a different answer NEED THE CORRECT ANSWER PLEASE PLEASE
upvoted 3 times
...
Chris78
3 years, 6 months ago
B is the correct https://docs.microsoft.com/en-us/powershell/module/azurerm.profile/set-azurermcontext?view=azurermps-6.13.0
upvoted 1 times
...
HillJoseph
3 years, 7 months ago
The answer is either C or D. Tried both and got redirected on the same panel.
upvoted 1 times
...
Lains2019
3 years, 8 months ago
I agree with Joan Crawford, the answer should be D. The B Set-AzureRMContext is per login. The A does not exist, the correct command should be like Select-AzureSubscription –Default C is able to change the settings within a Subscription, nothing about default sub...
upvoted 1 times
...
_syamantak
3 years, 8 months ago
Correct Answer is C. Tested . 1. Go to Portal settings 2. Click on the "click here " Looking to switch directories or filter subscriptions?Click here 3. On the "Directory + subscription" option I can see below : Default subscription filter The portal will show data only for these selected subscriptions on portal launch. Hence C is the right option
upvoted 6 times
...
Steve_az
3 years, 8 months ago
Anwer for the below question proves the correct answer is D. https://www.examtopics.com/exams/microsoft/az-100/view/39/ Question #5
upvoted 1 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 ...