How should you configure the relevant Windows PowerShell script?

HOTSPOT

You deploy a new version of a cloud-service application to a staging slot. The application consists of one web role. You prepare to swap the new version of the application into the production slot.

Your Azure account has access to multiple Azure subscriptions. You load the Azure PowerShell cmdlets into the Windows PowerShell command shell. The command shell is NOT configured for certificate-based authentication.

You must use the Windows PowerShell command window to configure the application. You need to create five instances of the web role.

How should you configure the relevant Windows PowerShell script?

Answer:

Explanation:

Step1: Add-AzureAccount

Create a new account

Step 2: Select-AzureSubscription

Change the name of the subscription

Step 3: Set-AzureRole -ServiceName -slot Staging

The Set-AzureRole cmdlet sets the number of instances of a specified role to run in an Azure deployment.

-Slot specifies the deployment environment of the deployment to modify. The acceptable values for this parameter are: Production Staging

Explanation:

https://cann0nf0dder.wordpress.com/2015/03/07/handling-azure-powershell-with-multiple-azure-subscriptions/

https://docs.microsoft.com/en-us/powershell/module/azure/set-azurerole?view=azuresmps-4.0.0

Latest 70-535 Dumps Valid Version with 458 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments