Which PowerShell command should you use?

You administer an Azure subscription with an existing cloud service named contosocloudservice.
Contosocloudservice contains a set of related virtual machines (VMs) named ContosoDC, ContosoSQL and
ContosoWeb1.
You want to provision a new VM within contosocloudservice.
You need to use the latest gallery image to create a new Windows Server 2012 R2 VM that has a target
IOPS of 500 for any provisioned disks.
Which PowerShell command should you use?

You administer an Azure subscription with an existing cloud service named contosocloudservice.
Contosocloudservice contains a set of related virtual machines (VMs) named ContosoDC, ContosoSQL and
ContosoWeb1.
You want to provision a new VM within contosocloudservice.
You need to use the latest gallery image to create a new Windows Server 2012 R2 VM that has a target
IOPS of 500 for any provisioned disks.
Which PowerShell command should you use?

A.
Option A

B.
Option B

C.
Option C

D.
Option D

Explanation:
This example creates a new Windows virtual machine configuration with operating system disk, data disk
and provisioning configuration. This configuration is then used to create a new virtual machine.
C:\\PS> $image = (Get-AzureVMImage).ImageName
C:\\PS>New-AzureVMConfig -Name “MyVM1” -InstanceSize ExtraSmall -ImageName $image ` | AddAzureProvisioningConfig -Windows -Password $adminPassword ` | Add-AzureDataDisk -CreateNew –
DiskSizeInGB 50 -DiskLabel ‘datadisk1’ -LUN 0 ` | New-AzureVM –ServiceName “MySvc1”

New-AzureVMConfig
URL: http://msdn.microsoft.com/en-us/library/dn495159.aspx



Leave a Reply 9

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


Iain

Iain

A

From the Microsoft Press exam study book (pg74):
https://books.google.co.uk/books?id=BF-5BgAAQBAJ&pg=PA75&lpg=PA75

To add a new virtual machine in an existing cloud service with New-AzureVM, you can omit or specify the Location parameter (either option works).

New-AzureQuickVM will fail if you specify the location and also if the cloud service name specified in ServiceName already exists. New-AzureVM will produce a warning that the cloud service already exists but will continue

B is ruled out because it is not a valid VM size (it is a cloud service size)
C and D are ruled out because they use the New-AzureQuickVM option where the service already exists.

ak

ak

Where is contosocloudservice in option A?

Pankaj Kumar

Pankaj Kumar

New 70-533 Exam Questions and Answers (17/Nov/2017 Updated):

NEW QUESTION 230
You create an Azure Recovery Services vault and download the backup agent installation file. You need to complete the installation of the backup agent. What should you do first?

A. Configure network throttling.
B. Set the storage replication option.
C. Download the vault credentials file.
D. Select the data to back up.

Answer: C
Explanation:
After you have created the vault, prepare your infrastructure to back up files and folders by downloading and installing the Microsoft Azure Recovery Services agent, downloading vault credentials, and then using those credentials to register the agent with the vault. You can install the agent after you have downloaded the vault credentials.
Note:
On the Prepare infrastructure blade, click Download.

NEW QUESTION 231
A company deploys Microsoft SQL Server on an Azure Standard_DS3 virtual machine (VM). You need to modify the disk caching policy. Which Azure PowerShell cmdlet should you run?

A. Set-AzureRmVmOperatingSystem
B. Set-AzureRmVmDataDisk
C. Update-Disk
D. Update-AzureDisk

Answer: B
Explanation:
The Set-AzureRmVMDataDisk cmdlet modifies properties of a virtual machine data disk.
Incorrect:
Not A: The Set-AzureRmVMOperatingSystem cmdlet sets operating system properties for a virtual machine. You can specify logon credentials, computer name, and operating system type.
Not C: The Update-Disk cmdlet updates cached information about the specified Disk object only.
Not D: The Update-AzureDisk cmdlet changes the label that is associated with a disk in the disk repository of the current Azure subscription.

NEW QUESTION 232
You plan to use Azure Monitor with AutoScale Services. You create a URI to be used with the monitoring service. You need to configure an alert that specifies the URI. Which Azure Command-Line Interface (CLI) command or Azure PowerShell cmdlet should you run?

A. New-AzureRmAlertRuleEmail
B. Azure insights logprofile add
C. New-AzureRmAlertRuleWebhook
D. New-AzureRmAutoscaleRule

Answer: C
Explanation:
The New-AzureRmAlertRuleWebhook cmdlet creates an alert rule webhook.
Incorrect:
Not A: The New-AzureRmAlertRuleEmail cmdlet creates an e-mail action for an alert rule.
Not B: The azure insights logprofile add command adds a log profile.
Not D: The New-AzureRmAutoscaleRule cmdlet creates an Autoscale rule.

NEW QUESTION 233
A company uses Azure to host virtual machines (VMs) and web apps. You need to ensure that you can configure a schedule to scale app services. How should you configure the app service?

A. Set the scale by metric setting to Queue.
B. Set the scale up by instances setting to 5.
C. Set the scale down by instances setting to 5.
D. Ensure that linked resources are also scaled.
E. Set the scale by metric setting to None.

Answer: A
Explanation:
The Automatic scale – Queue mode automatically scales if the number of messages in a queue goes above or below a specified threshold. Role instances are created or deleted when this happens.
Incorrect:
Not B, Not C: To set the scale up/scale down by instances setting you must first set the scale by metric setting to CPU.
Not D: Scale linked resources. Often when you scale a role, it’s beneficial to scale the database that the application is using also. If you link the database to the cloud service, you can access the scaling settings for that resource.

NEW QUESTION 234
You are an administrator of the Azure subscription for your company. You are updating an Azure Resource Manager (ARM) template. You need to ensure that the JSON file uses the latest version available. Which template element should you modify?

A. parameters
B. resources
C. $schema
D. variables

Answer: A

NEW QUESTION 235
You are the Azure administrator for your company. The company has developed a mobile application used to support sales people in the field. The application uses Azure Active Directory (Azure AD) accounts for authentication. The application sends and receives HTTP requests on publicly accessible endpoints. You need to provide the ability to authenticate the application using Azure. Which tool should you use?

A. OAuth 2.0 authorization code grant
B. Azure AD Connect
C. Azure Portal
D. Azure AD Graph API

Answer: A
Explanation:
Azure Active Directory (Azure AD) uses OAuth 2.0 to enable you to authorize access to web applications and web APIs in your Azure AD tenant.
Note:
The authorization code grant type is used to obtain both access tokens and refresh tokens and is optimized for confidential clients. Since this is a redirection-based flow, the client must be capable of interacting with the resource owner’s user-agent (typically a web browser) and capable of receiving incoming requests (via redirection) from the authorization server.

NEW QUESTION 236
A company uses Azure to host virtual machines (VMs) and web apps. You plan to deploy a new web app in the Shared App Service tier. The web app must support running up to 25 instances concurrently. You need to ensure that you can configure HTTPS for the new web app. What should you do?

A. Configure the domain name mapping.
B. Set the deployment credentials for the app service.
C. Create a new app service.
D. Scale up to the Premium App Service tier.

Answer: A

NEW QUESTION 237
A company uses Azure to host virtual machines (VMs) and web apps. A line of business (LOB) application that runs on a VM uses encrypted storage. You need to ensure that the VMs support the LOB application. What should you do?

A. Run the Set-AzureRmVMDiskEncryptionExtension Azure PowerShell cmdlet.
B. Use a Premium Storage disk for the VM.
C. Run the Add-AzureRmVmssSecret Azure PowerShell cmdlet.
D. Scan the environment from the Azure Security Manager.

Answer: A

NEW QUESTION 238
A company has an existing on-premises Active Directory environment that is synchronized using DirSync. They plan to transition the DirSync deployment to Azure Active Directory (Azure AD) Connect. You need to identify a transition path for the company. What should you do?

A. Install a new on-premises domain controller.
B. Create a new Azure AD instance.
C. Upgrade the on-premises Active Directory Domain Service (AD DS) forest functional level to Windows Server 2016.
D. Deploy Azure AD Connect in parallel.

Answer: D

NEW QUESTION 239
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this sections, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You manage an Azure SQL Database. The database has weekly backups that are stored in an Azure Recovery Services vault. You need to maximize the time that previous backup versions are stored.
Solution: You configure a retention policy that is set to 20 years.
Does the solution meet the goal?

A. Yes
B. No

Answer: B
Explanation:
Store Azure SQL Database backups for up to 10 years. Many applications have regulatory, compliance, or other business purposes that require you to retain database backups beyond the 7-35 days provided by Azure SQL Database automatic backups. By using the long-term backup retention feature, you can store your SQL database backups in an Azure Recovery Services vault for up to 10 years.

NEW QUESTION 240
……

P.S. These New 70-533 Exam Questions Were Just Updated From The Real 70-533 Exam, You Can Get The Newest 70-533 Dumps In PDF And VCE From — https://www.passleader.com/70-533.html (243q VCE and PDF)

Good Luck!