Developing Microsoft Azure and Web Services — Question 23
You have a Microsoft Visual Studio project named Project1 that is deployed as an Azure web app. The Azure web app uses an Azure SQL Database.
You plan to deploy updates to the Azure web app by using a Web Deploy Package.
The password for the Azure SQL Database was changed since you first published the Azure web app.
You need to deploy the package by using Windows PowerShell.
Which file should you modify before running the PowerShell deployment script?
Answer options
- A. WebApiConfig.cs from the App_Start folder
- B. IdentityConfig.cs from the App_Start folder
- C. App.config from the Web Application folder
- D. Project1-waws-dev.json from the Configurations folder
Correct answer: A
Explanation
The correct answer is A because the WebApiConfig.cs file typically contains configurations related to the web API, including database connection strings. The other options, while they may contain configuration settings, are not primarily responsible for the database connection details needed for the deployment.