You need to configure local Git deployment for a new Azure App Service web app. Which sequence of steps should you perform? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order.
- 1Configure subscription-level deployment credentials using the Azure CLI command `az webapp deployment user set`.
- 2Enable local Git deployment on the Azure App Service web app using the `az webapp deployment source config-local-git` command.
- 3Add the Azure Git clone URL as a remote named `azure` in your local repository using `git remote add azure <git-clone-url>`.
- 4Deploy the application code to the Azure web app by running `git push azure main`.
Cevap
First, configure subscription-level deployment credentials with `az webapp deployment user set`. Second, enable local Git deployment on the web app using `az webapp deployment source config-local-git` to obtain the clone URL. Third, add the clone URL as a local remote named `azure` using `git remote add`. Finally, deploy the application code by running `git push azure main`.
The correct sequence begins by configuring subscription-level credentials with `az webapp deployment user set`. Once credentials are set, the next step is to enable local Git deployment on the target web app using `az webapp deployment source config-local-git`, which provides the Git repository clone URL. This URL is then added as a remote endpoint to the local Git repository using `git remote add azure`. Finally, the application code is deployed by pushing the local branch to the remote using `git push azure main`.
Adım Adım Çözüm
Anahtar Kavram
Configuring local Git deployment for an Azure App Service web app requires setting deployment credentials, enabling the Git repository on the web app, configuring a local git remote pointing to the Azure Git URL, and pushing the code to trigger the build.