Resource Orchestration Service (ROS) lets you define your required Alibaba Cloud resources, such as ECS instances and ApsaraDB RDS instances, and their dependencies in a template. The ROS orchestration engine then automatically creates and configures resources based on the template for automated deployment and operations. This topic describes how to use OSS and ROS to quickly create a SharePoint 2013 environment.
The example in this topic is provided by an Alibaba Cloud user for reference only.
Prerequisites
-
A bucket has been created with its access control list (ACL) set to Private. For more information about how to create a bucket, see Create buckets.
-
Download the sharepoint.exe installation file.
Step 1: Upload sharepoint.exe to the bucket
Log on to the OSS console.
In the left-side navigation pane, click Buckets. On the Buckets page, find and click the desired bucket.
-
In the left-side navigation pane, choose .
-
Upload the downloaded
sharepoint.exefile.When you upload the file, set the object ACL to Public Read and keep the default settings for other parameters. For more information about how to upload an object, see Upload objects.
-
Obtain the object URL.
After the file is uploaded, find the
sharepoint.exeobject, click View Details in the Actions column, and then click Copy Object URL.
Step 2: Create a stack using ROS
-
Select a template.
-
Log on to the ROS console.
-
In the left-side navigation pane, click Stacks.
-
In the top navigation bar, select China (Hangzhou) from the region drop-down list.
-
On the Stacks page, click Create Stack. Select Select an Existing Template. For the Template Import Method, select Enter Template Content. On the JSON tab, enter the following template content, and then click Next.
-
{ "ROSTemplateFormatVersion": "2015-09-01", "Description": "This template deploys a simple ECS instance with SharePoint Foundation 2013. The default image is win2008r2_sp1_x64_ent_zh-cn_40G_alibase_20200116.vhd. You must specify an instance type.", "Parameters": { "VpcCidrBlock": { "Type": "String", "Description": { "en": "The IP address range of the VPC in CIDR block format. <br>You can use one of the following IP address ranges: <br><font color='green'>[10.0.0.0/8]</font><br><font color='green'>[172.16.0.0/12]</font><br><font color='green'>[192.168.0.0/16]</font>", "zh-cn": "专有网络IP地址段范围,<br>您可以使用以下的IP地址段:<br><font color='green'>[10.0.0.0/8]</font><br><font color='green'>[172.16.0.0/12]</font><br><font color='green'>[192.168.0.0/16]</font>" }, "AllowedValues": [ "192.168.0.0/16", "172.16.0.0/12", "10.0.0.0/8" ], "Label": { "en": "VPC CIDR Block", "zh-cn": "专有网络网段" }, "Default": "192.168.0.0/16" }, "VSwitchCidrBlock": { "Type": "String", "Description": { "zh-cn": "创建的虚拟交换机的子网,必须是所属专有网络的子网段,并且没有被其他交换机占用。", "en": "The CIDR block of the VSwitch. It must be a subnet of the VPC and not be in use by another VSwitch." }, "Label": { "zh-cn": "交换机网段", "en": "VSwitch CIDR Block" }, "Default": "192.168.0.0/16" }, "ZoneId": { "Type": "String", "AssociationProperty": "ALIYUN::ECS::Instance:ZoneId", "Description": { "en": "The ID of the availability zone.<br><b>Note: <font color='blue'>Before you select an availability zone, confirm that it supports the instance type you plan to create.</font></b>", "zh-cn": "可用区ID,<br><b>注: <font color='blue'>选择可用区前请确认该可用区是否支持创建ECS资源的规格</font></b>" }, "Label": { "zh-cn": "交换机可用区", "en": "VSwitch Availability Zone" } }, "SharePointDownloadPath": { "Label": { "zh-cn": "SharePoint镜像下载路径", "en": "SharePoint Image Download Path" }, "Type": "String", "Description": { "zh-cn": "SharePoint Foundation2013镜像下载路径,详见: <a href='https://docs.microsoft.com/zh-cn/OfficeUpdates/sharepoint-updates' target='_blank'><b><font color='blue'>SharePoint Foundation2013镜像下载路径</b></font></a>", "en": "The download path for the SharePoint Foundation 2013 image. For more information, see <a href='https://docs.microsoft.com/en-us/OfficeUpdates/sharepoint-updates' target='_blank'><b><font color='blue'>Updates for SharePoint 2013 and SharePoint Foundation 2013</b></font></a>." } }, "ImageId": { "Default": "win2008r2_sp1_x64_ent_zh-cn_40G_alibase_20200116.vhd", "Label": { "zh-cn": "镜像", "en": "Image ID" }, "Type": "String", "Description": { "zh-cn": "镜像ID,关于SharePoint Foundation2013系统要求,详见: <a href='https://docs.microsoft.com/zh-cn/sharepoint/install/hardware-and-software-requirements-0' target='_blank'><b><font color='blue'>SharePoint Foundation2013系统要求</b></font></a>", "en": "The image ID. For information about system requirements for SharePoint Foundation 2013, see <a href='https://docs.microsoft.com/en-us/sharepoint/install/hardware-and-software-requirements-0' target='_blank'><b><font color='blue'>Hardware and software requirements for SharePoint 2013</b></font></a>." } }, "InstanceType": { "Type": "String", "Description": { "zh-cn": "填写VSwitch可用区下可使用的规格;<br>通用规格:<font color='red'><b>ecs.c5.large</b></font><br>注:可用区可能不支持通用规格<br>规格详见:<a href='https://help.aliyun.com/document_detail/25378.html' target='_blank'><b><font color='blue'>实例规格族</font></a></b>", "en": "The instance types available in the specified VSwitch availability zone.<br>General-purpose instance type example: <font color='red'><b>ecs.c5.large</b></font><br>Note: Some availability zones may not support general-purpose instance types.<br>For more information, see <a href='https://www.alibabacloud.com/help/en/doc-detail/25378.html' target='_blank'><b><font color='blue'>Instance families</font></a></b>" }, "Label": { "zh-cn": "实例规格", "en": "Instance Type" }, "AssociationProperty": "ALIYUN::ECS::Instance::InstanceType", "AssociationPropertyMetadata": { "ZoneId": "ZoneId" } }, "Password": { "NoEcho": true, "Type": "String", "Description": { "en": "The login password for the instance. The password must be 8 to 30 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters: ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/", "zh-cn": "服务器登录密码,长度为8~30个字符,必须包含三项(大写字母、小写字母、数字、 ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ 中的特殊符号)。" }, "AllowedPattern": "[0-9A-Za-z\\_\\-\\&:;'<>,=%`~!@#\\(\\)\\$\\^\\*\\+\\|\\{\\}\\[\\]\\.\\?\\/]+$", "Label": { "zh-cn": "实例密码", "en": "Instance Password" }, "ConstraintDescription": { "en": "The password must be 8 to 30 characters long and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters from the following set: ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/", "zh-cn": "长度为8~30个字符,必须包含三项(大写字母、小写字母、数字、 ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ 中的特殊符号)。" }, "MinLength": 8, "MaxLength": 30 } }, "Metadata": { "ALIYUN::ROS::Interface": { "ParameterGroups": [ { "Parameters": [ "VpcCidrBlock", "VSwitchCidrBlock" ], "Label": { "default": "VPC" } }, { "Parameters": [ "ZoneId", "ImageId", "SharePointDownloadPath", "InstanceType", "Password" ], "Label": { "default": "ECS" } } ], "TemplateTags": [ "acs:example:WindowsApplicationService:Create_SharePoint2013_Windows_Instance_with_ROS_and_OSS" ] } }, "Resources": { "RosWaitCondition": { "Type": "ALIYUN::ROS::WaitCondition", "Properties": { "Timeout": 2700, "Count": 2, "Handle": { "Ref": "RosWaitConditionHandle" } }, "Metadata": { "ALIYUN::ROS::Designer": { "id": "47058b03-d345-4071-bcdb-9bc2888899be" } } }, "EcsVswitch": { "Type": "ALIYUN::ECS::VSwitch", "Properties": { "VpcId": { "Ref": "EcsVpc" }, "ZoneId": { "Ref": "ZoneId" }, "CidrBlock": { "Ref": "VSwitchCidrBlock" } }, "Metadata": { "ALIYUN::ROS::Designer": { "id": "3f1d6b20-25eb-4a1c-a40f-1f764b157bd6" } } }, "SharePointServer": { "Type": "ALIYUN::ECS::Instance", "Properties": { "VpcId": { "Ref": "EcsVpc" }, "UserData": { "Fn::Replace": [ { "ros-notify": { "Fn::GetAtt": [ "RosWaitConditionHandle", "PowerShellCurlCli" ] } }, { "Fn::Join": [ "", [ "[powershell]\r\n", "New-Item -Path \"C:\\Install_dir\" -Force -type directory \r\n", "$ossName = 'ros-template-resources' \r\n", "$client = new-object System.Net.WebClient \r\n", "$client.DownloadFile(\"", { "Ref": "SharePointDownloadPath" }, "\", 'C:\\Install_dir\\SharePoint.exe') \r\n", "$client.DownloadFile(\"https://$ossName.oss-cn-beijing.aliyuncs.com/SharePoint/AppFabric1.1-RTM-KB2671763-x64-ENU.exe\", 'C:\\Install_dir\\AppFabric1.1-RTM-KB2671763-x64-ENU.exe')\r\n", "$client.DownloadFile(\"https://$ossName.oss-cn-beijing.aliyuncs.com/SharePoint/MicrosoftIdentityExtensions-64.msi\", 'C:\\Install_dir\\MicrosoftIdentityExtensions-64.msi')\r\n", "$client.DownloadFile(\"https://$ossName.oss-cn-beijing.aliyuncs.com/SharePoint/setup_msipc_x64.msi\", 'C:\\Install_dir\\setup_msipc_x64.msi')\r\n", "$client.DownloadFile(\"https://$ossName.oss-cn-beijing.aliyuncs.com/SharePoint/sqlncli.msi\", 'C:\\Install_dir\\sqlncli.msi')\r\n", "$client.DownloadFile(\"https://$ossName.oss-cn-beijing.aliyuncs.com/SharePoint/Synchronization.msi\", 'C:\\Install_dir\\Synchronization.msi')\r\n", "$client.DownloadFile(\"https://$ossName.oss-cn-beijing.aliyuncs.com/SharePoint/WcfDataServices.exe\", 'C:\\Install_dir\\WcfDataServices.exe')\r\n", "$client.DownloadFile(\"https://$ossName.oss-cn-beijing.aliyuncs.com/SharePoint/Windows6.1-KB974405-x64.msu\", 'C:\\Install_dir\\Windows6.1-KB974405-x64.msu')\r\n", "$client.DownloadFile(\"https://$ossName.oss-cn-beijing.aliyuncs.com/SharePoint/WindowsServerAppFabricSetup_x64.exe\", 'C:\\Install_dir\\WindowsServerAppFabricSetup_x64.exe')\r\n", "cd C:\\Install_dir \r\n", "New-Item \"install_sharepoint.bat\" -type File \r\n", "Add-Content install_sharepoint.bat \"C:\" \r\n", "Add-Content install_sharepoint.bat 'powershell.exe C:\\Install_dir\\Install_SharePoint.ps1' \r\n", "New-Item \"Install_SharePoint.ps1\" -type File \r\n", "Add-Content Install_SharePoint.ps1 'if(Test-Path \"C:\\Install_dir\\finished.log\"){' \r\n", "Add-Content Install_SharePoint.ps1 \"cd C:\\Install_dir \" \r\n", "Add-Content Install_SharePoint.ps1 \"}else{ \" \r\n", "Add-Content Install_SharePoint.ps1 'Start-Process C:\\Install_dir\\2013\\Setup.exe -args \"/config C:\\Install_dir\\2013\\Files\\SetupSilent\\config.xml\" -Wait'\r\n", "Add-Content Install_SharePoint.ps1 'cd C:\\Install_dir'\r\n", "Add-Content Install_SharePoint.ps1 'New-Item \"finish.log\" -type File'\r\n", "Add-Content Install_SharePoint.ps1 'Remove-Item \"C:\\Install_dir\\SharePoint.exe\"' \r\n", "Add-Content Install_SharePoint.ps1 'Remove-Item \"C:\\Install_dir\\2013\\*\" -recurse' \r\n", "Add-Content Install_SharePoint.ps1 'schtasks /delete /TN \"install_sharepoint\" /f'\r\n", "Add-Content Install_SharePoint.ps1 'ros-notify'\r\n", "Add-Content Install_SharePoint.ps1 \"}\" \r\n", "Start-Process C:\\Install_dir\\SharePoint.exe -args \"/extract:C:\\Install_dir\\2013 /quiet\" -Wait \r\n", "Start-Process C:\\Install_dir\\2013\\prerequisiteinstaller.exe -args \"/continue /unattended\" -Wait \r\n", "Start-Process C:\\Install_dir\\2013\\prerequisiteinstaller.exe -args \"/SQLNCli:C:\\Install_dir\\sqlncli.msi /continue /unattended\" -Wait\r\n", "Start-Process C:\\Install_dir\\2013\\prerequisiteinstaller.exe -args \"/IDFX:C:\\Install_dir\\Windows6.1-KB974405-x64.msu /continue /unattended\" -Wait\r\n", "Start-Process C:\\Install_dir\\2013\\prerequisiteinstaller.exe -args \"/Sync:C:\\Install_dir\\Synchronization.msi /continue /unattended\" -Wait\r\n", "Start-Process C:\\Install_dir\\2013\\prerequisiteinstaller.exe -args \"/AppFabric:C:\\Install_dir\\WindowsServerAppFabricSetup_x64.exe /continue /unattended\" -Wait \r\n", "Start-Process C:\\Install_dir\\MicrosoftIdentityExtensions-64.msi -args \"/quiet\" -Wait \r\n", "Start-Process C:\\Install_dir\\2013\\prerequisiteinstaller.exe -args \"/continue /unattended\" -Wait \r\n", "Start-Process C:\\Install_dir\\2013\\prerequisiteinstaller.exe -args \"/WCFDataServices:C:\\Install_dir\\WcfDataServices.exe /continue /unattended\" -Wait \r\n", "Start-Process C:\\Install_dir\\2013\\prerequisiteinstaller.exe -args \"/KB2671763:C:\\Install_dir\\AppFabric1.1-RTM-KB2671763-x64-ENU.exe /continue /unattended\" -Wait\r\n", "schtasks /create /TN \"install_sharepoint\" /RU administrator /RP \"", { "Ref": "Password" }, "\" /SC ONSTART /TR \"C:\\Install_dir\\install_sharepoint.bat\" \r\n", "ros-notify \r\n", "shutdown /r /f /t 1 \r\n" ] ] } ] }, "SecurityGroupId": { "Ref": "EcsSecurityGroup" }, "VSwitchId": { "Ref": "EcsVswitch" }, "ImageId": { "Ref": "ImageId" }, "InstanceType": { "Ref": "InstanceType" }, "Password": { "Ref": "Password" } }, "Metadata": { "ALIYUN::ROS::Designer": { "id": "62ed3480-152b-40d3-946d-4d19c0de7530" } } }, "EcsVpc": { "Type": "ALIYUN::ECS::VPC", "Properties": { "CidrBlock": { "Ref": "VpcCidrBlock" }, "VpcName": "Vpc-sharepoint" }, "Metadata": { "ALIYUN::ROS::Designer": { "id": "4dfdcadf-d55e-4085-af95-79d40005c3da" } } }, "EcsSecurityGroup": { "Type": "ALIYUN::ECS::SecurityGroup", "Properties": { "SecurityGroupIngress": [ { "Priority": 1, "PortRange": "3389/3389", "NicType": "intranet", "SourceCidrIp": "0.0.0.0/0", "IpProtocol": "tcp" } ], "VpcId": { "Ref": "EcsVpc" } }, "Metadata": { "ALIYUN::ROS::Designer": { "id": "f1c13fc6-e74d-477c-be14-9e24fd583b55" } } }, "RosWaitConditionHandle": { "Type": "ALIYUN::ROS::WaitConditionHandle", "Metadata": { "ALIYUN::ROS::Designer": { "id": "d3d24118-a044-4f1d-9684-758480e50a31" } } } }, "Outputs": { "InstanceId": { "Value": { "Fn::GetAtt": [ "SharePointServer", "InstanceId" ] } }, "PublicIp": { "Value": { "Fn::GetAtt": [ "SharePointServer", "PublicIp" ] } }, "SecurityGroupId": { "Value": { "Fn::GetAtt": [ "EcsSecurityGroup", "SecurityGroupId" ] } }, "VpcName": { "Value": { "Fn::GetAtt": [ "EcsVpc", "VpcId" ] } } } }
-
-
Configure the template parameters.
-
On the Configure Template Parameters page, enter a name for the stack, and then configure the parameters as described in the following table.
Section
Parameter
Description
VPC
VPC CIDR Block
Select 192.168.0.0/16.
VSwitch CIDR Block
Enter 192.168.0.0/24.
ECS
VSwitch Availability Zone
Select an availability zone as needed, for example, Zone G.
Image
The ID of the image used to create the ECS instance.
SharePoint Image Download Path
Enter the object URL for the
sharepoint.exefile, which you obtained in Step 1.Instance Type
Select an instance type as needed, for example,
ecs.c5.large.Instance Password
Set a custom login password for the ECS instance.
-
Click Create.
It takes about 40 minutes to create the stack.
-
-
Log on to the ECS instance.
-
On the Stacks page, click the name of the stack that you created.
-
On the Resources tab, click the resource ID of the
SharePointServerresource of typeALIYUN::ECS::Instance. -
In the ECS console, find the instance and click Connect in the Actions column. Then, in the Connect to Instance dialog box, click Sign in now.
-
-
Explore SharePoint.
-
Open the SharePoint 2013 Central Administration site. Enter
administratoras the username and the instance password that you set.
-
-
From the SharePoint Central Administration site, you can explore various features.
The SharePoint Central Administration homepage includes the following management modules: Application Management (manage web applications, create site collections, manage service applications, manage content databases), System Settings (manage servers, manage farm features, configure alternate access mappings), Monitoring (review problems and solutions, check job status), Backup and Restore (perform a backup, restore from a backup, perform a site collection backup), Security (manage the farm administrators group, configure service accounts), and Upgrade and Migration (convert farm license type, view product and patch installation status, view upgrade status).