Skip to content

Commit 0730b9a

Browse files
authored
Merge pull request #12241 from MicrosoftDocs/learn-build-service-prodbot/docutune-autopr-20240229-220038-2503359-ignore-build
[BULK] [DocuTune-Remediation] - Scheduled execution to fix known issues in Visual Studio documentation (part 3)
2 parents 34ad642 + 2b5d70a commit 0730b9a

6 files changed

+42
-19
lines changed

docs/azure/vs-azure-tools-cloud-service-project-managing-roles.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
2-
title: Managing roles in Azure cloud services
3-
description: Learn how to add and remove roles in Azure cloud services with Visual Studio.
2+
title: Managing roles in Azure Cloud Services
3+
description: Learn how to add and remove roles in Azure Cloud Services with Visual Studio.
44
author: ghogen
55
manager: jmartens
66
ms.subservice: azure-development
77
ms.topic: how-to
88
ms.date: 03/21/2017
99
ms.author: ghogen
1010
---
11-
# Managing roles in Azure cloud services with Visual Studio
11+
12+
# Managing roles in Azure Cloud Services with Visual Studio
1213

1314
[!INCLUDE [Cloud Services](./includes/cloud-services-legacy.md)]
1415

@@ -19,6 +20,7 @@ After you have created your Azure cloud service, you can add new roles to it or
1920
- [!INCLUDE [prerequisites-azure-subscription](includes/prerequisites-azure-subscription.md)]
2021

2122
## Adding a role to an Azure cloud service
23+
2224
The following steps guide you through adding a web or worker role to an Azure cloud service project in Visual Studio.
2325

2426
1. Create or open an Azure cloud service project in Visual Studio.
@@ -30,6 +32,7 @@ The following steps guide you through adding a web or worker role to an Azure cl
3032
![Menu options to add a role to an Azure cloud service project](./media/vs-azure-tools-cloud-service-project-managing-roles/add-role.png)
3133

3234
## Removing a role from an Azure cloud service
35+
3336
The following steps guide you through removing a web or worker role from an Azure cloud service project in Visual Studio.
3437

3538
1. Create or open an Azure cloud service project in Visual Studio.
@@ -43,6 +46,7 @@ The following steps guide you through removing a web or worker role from an Azur
4346
![Menu options to add a role to an Azure cloud service](./media/vs-azure-tools-cloud-service-project-managing-roles/remove-role.png)
4447

4548
## Readding a role to an Azure cloud service project
49+
4650
If you remove a role from your cloud service project but later decide to add the role back to the project, only the role declaration and basic attributes, such as endpoints and diagnostics information, are added. No additional resources or references are added to the `ServiceDefinition.csdef` file or to the `ServiceConfiguration.cscfg` file. If you want to add this information, you need to manually add it back into these files.
4751

4852
For example, you might remove a web service role and later you decide to add this role back into your solution. If you do this, an error occurs. To prevent this error, you have to add the `<LocalResources>` element shown in the following XML back into the `ServiceDefinition.csdef` file. Use the name of the web service role that you added back into the project as part of the name attribute for the **\<LocalStorage>** element. In this example, the name of the web service role is **WCFServiceWebRole1**.
@@ -69,4 +73,5 @@ For example, you might remove a web service role and later you decide to add thi
6973
```
7074

7175
## Related content
76+
7277
- [Configure the Roles for an Azure cloud service with Visual Studio](vs-azure-tools-configure-roles-for-cloud-service.md)

docs/azure/vs-azure-tools-cloud-service-publish-set-up-required-services-in-visual-studio.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ ms.topic: how-to
88
ms.date: 11/10/2017
99
ms.author: ghogen
1010
---
11+
1112
# Prepare to publish or deploy a cloud service from Visual Studio
1213

1314
[!INCLUDE [Cloud Services](./includes/cloud-services-legacy.md)]
1415

1516
To publish a cloud service project, you must set up the following services as described in this article:
1617

17-
* A **cloud service** to run your roles in the Azure environment, and
18-
* A **storage account** that provides access to the Blob, Queue, and Table services.
18+
- A **cloud service** to run your roles in the Azure environment, and
19+
- A **storage account** that provides access to the Blob, Queue, and Table services.
1920

2021
## Prerequisites
2122

@@ -71,7 +72,7 @@ To configure settings manually, use the property pages in Visual Studio for the
7172

7273
### About access keys
7374

74-
The Azure portal shows the URLs that you can use to access resources in each of the Azure storage services, and also the primary and secondary access keys for your account. You use these keys to authenticate requests made against the storage services.
75+
The Azure portal shows the URLs that you can use to access resources in each of the Azure Storage services, and also the primary and secondary access keys for your account. You use these keys to authenticate requests made against the storage services.
7576

7677
The secondary access key provides the same access to your storage account as the primary access key and is generated as a backup should your primary access key be compromised. Additionally, it is recommended that you regenerate your access keys on a regular basis. You can modify a connection string setting to use the secondary key while you regenerate the primary key, then you can modify it to use the regenerated primary key while you regenerate the secondary key.
7778

docs/azure/vs-azure-tools-cloud-service-retain-a-constant-virtual-ip-address.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,25 @@ ms.topic: how-to
88
ms.date: 03/21/2017
99
ms.author: ghogen
1010
---
11+
1112
# Retain a constant virtual IP address for an Azure cloud service
1213

1314
[!INCLUDE [Cloud Services](./includes/cloud-services-legacy.md)]
1415

15-
When you update a cloud service that's hosted in Azure, you might need to ensure that the virtual IP address (VIP) of the service doesn't change. Many domain management services use the Domain Name System (DNS) for registering domain names. DNS works only if the VIP remains the same. You can use the **Publish Wizard** in Azure Tools to ensure that the VIP of your cloud service doesnt change when you update it. For more information about how to use DNS domain management for cloud services, see [Configuring a custom domain name for an Azure cloud service](/azure/cloud-services/cloud-services-custom-domain-name-portal).
16+
When you update a cloud service that's hosted in Azure, you might need to ensure that the virtual IP (VIP) address (VIP) of the service doesn't change. Many domain management services use the Domain Name System (DNS) for registering domain names. DNS works only if the VIP remains the same. You can use the **Publish Wizard** in Azure Tools to ensure that the VIP of your cloud service doesn't change when you update it. For more information about how to use DNS domain management for cloud services, see [Configuring a custom domain name for an Azure cloud service](/azure/cloud-services/cloud-services-custom-domain-name-portal).
1617

1718
## Prerequisites
1819

1920
- [!INCLUDE [prerequisites-azure-subscription](includes/prerequisites-azure-subscription.md)]
2021

2122
## Publish a cloud service without changing its VIP
22-
The VIP of a cloud service is allocated when you first deploy it to Azure in a particular environment, such as the production environment. The VIP changes only if you delete the deployment explicitly or the deployment is implicitly deleted by the deployment update process. To retain the VIP, you must not delete your deployment, and you must make sure that Visual Studio doesn’t delete your deployment automatically.
23+
24+
The VIP of a cloud service is allocated when you first deploy it to Azure in a particular environment, such as the production environment. The VIP changes only if you delete the deployment explicitly or the deployment is implicitly deleted by the deployment update process. To retain the VIP, you must not delete your deployment, and you must make sure that Visual Studio doesn't delete your deployment automatically.
2325

2426
You can specify deployment settings in the **Publish Wizard**, which supports several deployment options. You can specify a fresh deployment or an update deployment, which can be incremental or simultaneous. Both kinds of update deployment retain the VIP. For definitions of these different types of deployment, see [Publish Azure Application Wizard](vs-azure-tools-publish-azure-application-wizard.md). In addition, you can control whether the previous deployment of a cloud service is deleted if an error occurs. If you don't set that option correctly, the VIP might change unexpectedly.
2527

2628
## Update a cloud service without changing its VIP
29+
2730
1. Create or open an Azure cloud service project in Visual Studio.
2831

2932
2. In **Solution Explorer**, right-click the project. On the shortcut menu, select **Publish**.
@@ -34,11 +37,11 @@ You can specify deployment settings in the **Publish Wizard**, which supports se
3437

3538
![Publish Azure Application Sign In page](./media/vs-azure-tools-cloud-service-retain-a-constant-virtual-ip-address/azure-publish-signin.png)
3639

37-
4. On the **Common Settings** tab, verify that the name of the cloud service to which youre deploying, the **Environment**, the **Build configuration**, and the **Service configuration** are all correct.
40+
4. On the **Common Settings** tab, verify that the name of the cloud service to which you're deploying, the **Environment**, the **Build configuration**, and the **Service configuration** are all correct.
3841

3942
![Publish Azure Application Common Settings tab](./media/vs-azure-tools-cloud-service-retain-a-constant-virtual-ip-address/azure-publish-common-settings.png)
4043

41-
5. On the **Advanced Settings** tab, verify that the **Deployment label** and the **Storage account** are correct. Verify that the **Delete deployment on failure** check box is cleared, and verify that the **Deployment update** check box is selected. By clearing the **Delete deployment on failure** check box, you ensure that your VIP isn't lost if an error occurs during deployment. By selecting the **Deployment update** check box, you ensure that your deployment isn't deleted and your VIP isn't lost when you republish your application.
44+
5. On the **Advanced Settings** tab, verify that the **Deployment label** and the **Storage account** are correct. Verify that the **Delete deployment on failure** checkbox is cleared, and verify that the **Deployment update** checkbox is selected. By clearing the **Delete deployment on failure** checkbox, you ensure that your VIP isn't lost if an error occurs during deployment. By selecting the **Deployment update** checkbox, you ensure that your deployment isn't deleted and your VIP isn't lost when you republish your application.
4245

4346
![Publish Azure Application Advanced Settings tab](./media/vs-azure-tools-cloud-service-retain-a-constant-virtual-ip-address/azure-publish-advanced-settings.png)
4447

@@ -51,4 +54,5 @@ You can specify deployment settings in the **Publish Wizard**, which supports se
5154
![Publish Azure Application Summary page](./media/vs-azure-tools-cloud-service-retain-a-constant-virtual-ip-address/azure-publish-summary.png)
5255

5356
## Related content
57+
5458
- [Using the Visual Studio Publish Azure Application Wizard](vs-azure-tools-publish-azure-application-wizard.md)

docs/azure/vs-azure-tools-command-line-build.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ ms.topic: how-to
88
ms.date: 03/05/2017
99
ms.author: ghogen
1010
---
11+
1112
# Building Azure projects from the command line
1213

1314
[!INCLUDE [Cloud Services](./includes/cloud-services-legacy.md)]
@@ -17,14 +18,16 @@ Using the Microsoft Build Engine (MSBuild), you can build products in build-lab
1718
You can also run MSBuild at the command line, and this topic describes that approach. By setting properties on the command line, you can build specific configurations of a project. Similarly, you can also define the targets that MSBuild builds. For more information about command-line parameters and MSBuild, see [MSBuild Command-Line Reference](../msbuild/msbuild-command-line-reference.md).
1819

1920
## MSBuild parameters
21+
2022
The simplest way to create a package is to run MSBuild with the `/t:Publish` option. By default, this command creates a directory in relation to the root folder for the project, such as `<ProjectDirectory>\bin\Configuration\app.publish\`. When you build an Azure project, two files are generated: the package file itself and the accompanying configuration file:
2123

22-
* Package File (`project.cspkg`)
23-
* Configuration File (`ServiceConfiguration.TargetProfile.cscfg`)
24+
- Package File (`project.cspkg`)
25+
- Configuration File (`ServiceConfiguration.TargetProfile.cscfg`)
2426

2527
By default, each Azure project includes one service-configuration file for local (debugging) builds and another for cloud (staging or production) builds. However, you can add or remove service-configuration files as needed. When you build a package within Visual Studio, you are asked which service-configuration file to include alongside the package. When you build a package by using MSBuild, the local service-configuration file is included by default. To include a different service-configuration file, set the `TargetProfile` property of the MSBuild command (`MSBuild /t:Publish /p:TargetProfile=ProfileName`).
2628

2729
If you want to use an alternate directory for the stored package and configuration files, set the path by using the `/p:PublishDir=Directory\` option, including the trailing backslash separator.
2830

2931
## Related content
32+
3033
After the package is built, you can deploy it to Azure.

0 commit comments

Comments
 (0)