Home » Microsoft » 70-534 v.2 » 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
Correct Answer: AB
Explanation/Reference:
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 -Az u re PublishSett ing s File
– 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.
– In the Windows Azure PowerShell window, at the command prompt, type the following command, and then press Enter.Import –
AzurePublishSettingsFile <mysettings>.publishsettings
Reference: https://msdn.microsoft.com/en-us/library/dn385850%28v=nav.70%29.aspx