Which two Azure PowerShell cmdlets should you run?

A company has multiple Azure subscriptions. It plans to deploy a large number of virtual machines
(VMs) into Azure.
You install the Azure PowerShell module, but you are unable connect to all of the company’s Azure
subscriptions.
You need to automate the management of the Azure subscriptions.
Which two Azure PowerShell cmdlets should you run?

A company has multiple Azure subscriptions. It plans to deploy a large number of virtual machines
(VMs) into Azure.
You install the Azure PowerShell module, but you are unable connect to all of the company’s Azure
subscriptions.
You need to automate the management of the Azure subscriptions.
Which two Azure PowerShell cmdlets should you run?

A.
Get-AzurePublishSettingsFile

B.
Import-AzurePublishSettingsFile

C.
Add-AzureSubscription

D.
Import-AzureCertificate

E.
Get-AzureCertificate

Explanation:
Before you start using the Windows Azure cmdlets to automate deployments, you must configure
connectivity between the provisioning computer and Windows Azure. You can do this automatically
by downloading the PublishSettings file from Windows Azure and importing it.
To download and import publish settings and subscription information
At the Windows PowerShell command prompt, type the following command, and then press Enter.
Get-AzurePublishSettingsFile
2. Sign in to the Windows Azure Management Portal, and then follow the instructions to download
your Windows Azure publishing settings. Save the file as a .publishsettings type file to your
computer.
3. In the Windows Azure PowerShell window, at the command prompt, type the following
command, and then press Enter.
Import-AzurePublishSettingsFile <mysettings>.publishsettings
How to: Download and Import Publish Settings and Subscription Information
https://msdn.microsoft.com/en-us/library/dn385850%28v=nav.70%29.aspx



Leave a Reply 5

Your email address will not be published. Required fields are marked *


Arun Manglick

Arun Manglick

Given Answers are correct.

Mukesh Singh

Mukesh Singh

Given answers are correct

Get More

Get More

Having read this I thought it was rather enlightening. I appreciate you finding the time and energy to put this article together. I once again find myself spending a lot of time both reading and leaving comments. But so what, it was still worth it!|

Tapan

Tapan

1. Command Get-AzurePublishSettingsFile
2. The Get-AzurePublishSettingsFile cmdlet downloads a publish settings file for a subscription in your account. When the command completes, you can use the Import-PublishSettingsFile cmdlet to make the settings in the file available to Windows PowerShell.

4. Command Import-AzurePublishSettingsFile The Import-AzurePublishSettingsFile cmdlet imports a publish settings file (*.publishsettings) that contains information about your Azure accounts and saves a subscription data file on your computer. When the cmdlet completes, you can manage your Azure accounts in Windows PowerShell.

Answer is A, B

Tapan

Tapan

1. Command Get-AzurePublishSettingsFile
2. The Get-AzurePublishSettingsFile cmdlet downloads a publish settings file for a subscription in your account. When the command completes, you can use the Import-PublishSettingsFile cmdlet to make the settings in the file available to Windows PowerShell.

4. Command Import-AzurePublishSettingsFile The Import-AzurePublishSettingsFile cmdlet imports a publish settings file (*.publishsettings) that contains information about your Azure accounts and saves a subscription data file on your computer. When the cmdlet completes, you can manage your Azure accounts in Windows PowerShell.

Answer is A, B
http://www.tapanbanker.com