Remove old article and add redirect (#29544)
This commit is contained in:
Родитель
c2d2f6a28a
Коммит
6fe6f6aa49
|
@ -118,6 +118,7 @@
|
|||
".openpublishing.redirection.fsharp.json",
|
||||
".openpublishing.redirection.fundamentals.json",
|
||||
".openpublishing.redirection.machine-learning.json",
|
||||
".openpublishing.redirection.orleans.json",
|
||||
".openpublishing.redirection.standard.json",
|
||||
".openpublishing.redirection.visual-basic.json"
|
||||
],
|
||||
|
|
|
@ -79,10 +79,6 @@
|
|||
{
|
||||
"source_path_from_root": "/docs/tutorials/index.md",
|
||||
"redirect_url": "/dotnet/samples-and-tutorials/"
|
||||
},
|
||||
{
|
||||
"source_path_from_root": "/docs/orleans/whats-new/whats-new-in-orleans.md",
|
||||
"redirect_url": "https://github.com/dotnet/orleans/releases"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"redirections": [
|
||||
{
|
||||
"source_path_from_root": "/docs/orleans/whats-new/whats-new-in-orleans.md",
|
||||
"redirect_url": "https://github.com/dotnet/orleans/releases"
|
||||
},
|
||||
{
|
||||
"source_path_from_root": "/docs/orleans/deployment/azure-web-apps-with-azure-cloud-services.md",
|
||||
"redirect_url": "/dotnet/orleans/deployment/deploy-to-azure-app-service"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,52 +0,0 @@
|
|||
---
|
||||
title: Use Azure Web Apps with Azure Cloud Services
|
||||
description: Learn how to use Azure Web Apps with Azure Cloud Services in .NET Orleans.
|
||||
ms.date: 03/09/2022
|
||||
---
|
||||
|
||||
# Use Azure Web Apps with Azure Cloud Services
|
||||
|
||||
If you would like to connect to an Azure Cloud Services silo from an [Azure Web App](/azure/app-service/overview) rather than a Web Role hosted within the same cloud service you can.
|
||||
|
||||
For this to work securely you will need to assign both the Azure Web App and the Worker Role hosting the Silo to an [Azure Virtual Network](/azure/virtual-network).
|
||||
|
||||
First we'll setup the Azure Web App, you can follow [this guide](https://azure.microsoft.com/blog/azure-websites-virtual-network-integration) which will create the virtual network and assign it to the Azure Web App.
|
||||
|
||||
Now we can assign the cloud service to the virtual network by modifying the `ServiceConfiguration` file.
|
||||
|
||||
```xml
|
||||
<NetworkConfiguration>
|
||||
<VirtualNetworkSite name="virtual-network-name" />
|
||||
<AddressAssignments>
|
||||
<InstanceAddress roleName="role-name">
|
||||
<Subnets>
|
||||
<Subnet name="subnet-name" />
|
||||
</Subnets>
|
||||
</InstanceAddress>
|
||||
</AddressAssignments>
|
||||
</NetworkConfiguration>
|
||||
```
|
||||
|
||||
Also make sure the Silo endpoints are configured.
|
||||
|
||||
```xml
|
||||
<Endpoints>
|
||||
<InternalEndpoint name="OrleansSiloEndpoint" protocol="tcp" port="11111" />
|
||||
<InternalEndpoint name="OrleansProxyEndpoint" protocol="tcp" port="30000" />
|
||||
</Endpoints>
|
||||
```
|
||||
|
||||
You can now connect from the Web App to the rest of the cluster.
|
||||
|
||||
### Potential issues
|
||||
|
||||
If the Web App is having difficulty connecting to the Silo:
|
||||
|
||||
* Make sure you have at least **two roles**, or two instances of one role in your Azure Cloud Service, or the `InternalEndpoint` firewall rules may not be generated.
|
||||
* Check that both the Web App and the Silo are using the same `ClusterId` and `ServiceId`.
|
||||
* Make sure the network security group is set up to allow internal virtual network connections. If you haven't got one you can create and assign one easily using the following PowerShell:
|
||||
|
||||
```azurepowershell
|
||||
New-AzureNetworkSecurityGroup -Name "Default" -Location "North Europe"
|
||||
Get-AzureNetworkSecurityGroup -Name "Default" | Set-AzureNetworkSecurityGroupToSubnet -VirtualNetworkName "virtual-network-name" -SubnetName "subnet-name"
|
||||
```
|
|
@ -158,8 +158,6 @@ items:
|
|||
href: deployment/service-fabric.md
|
||||
- name: Handle failures
|
||||
href: deployment/handling-failures.md
|
||||
- name: Using Azure Web Apps with Azure Cloud Services
|
||||
href: deployment/azure-web-apps-with-azure-cloud-services.md
|
||||
- name: Troubleshooting Azure Cloud Services deployments
|
||||
href: deployment/troubleshooting-azure-cloud-services-deployments.md
|
||||
- name: Consul deployments
|
||||
|
|
Загрузка…
Ссылка в новой задаче