/// <summary> /// Creates a deployment payload for a predefined template /// </summary> /// <returns>A string xml representation</returns> protected override string CreatePayload() { var deployment = Deployment.GetAdHocLinuxTemplateDeployment(Properties); var document = new XDocument(deployment.GetXmlTree()); return document.ToStringFullXmlDeclarationWithReplace(); }
/// <summary> /// Creates a deployment payload for a predefined template /// </summary> /// <returns>A string xml representation</returns> protected override string CreatePayload() { var deployment = PersistentVMRole.AddAdhocLinuxRoleTemplates(new List<LinuxVirtualMachineProperties>(new[]{Properties})); var document = new XDocument(deployment[0].GetXmlTree()); return document.ToStringFullXmlDeclarationWithReplace(); }
/// <summary> /// Creates a deployment payload for a predefined template /// </summary> /// <returns>A string xml representation</returns> protected override string CreatePayload() { var deployment = new NetworkConfigurationSet {InputEndpoints = AllEndpoints}; var template = new PersistentVMRole {NetworkConfigurationSet = deployment, RoleName = RoleName}; var document = new XDocument(template.GetXmlTree()); return document.ToStringFullXmlDeclarationWithReplace(); }
/// <summary> /// Creates a deployment payload for a predefined template /// </summary> /// <returns>A string xml representation</returns> protected override string CreateXmlPayload() { Deployment deployment = null; switch (VirtualMachineType) { case VirtualMachineTemplates.SqlServer2012: deployment = Deployment .GetDefaultSqlServer2012Deployment(CloudServiceName, VhdStorageAccount, Password, InputEndpoints, Size, ComputerName, RoleName, this.VirtualNetworkName, this.SubnetNames); break; case VirtualMachineTemplates.CustomImage: deployment = Deployment .GetVirtualMachineDeployment( CloudServiceName, VhdStorageAccount, Password, CustomImageName, InputEndpoints, Size, ComputerName, RoleName, this.VirtualNetworkName, this.SubnetNames); break; } var document = new XDocument(deployment.GetXmlTree()); return document.ToStringFullXmlDeclarationWithReplace(); }
/// <summary> /// Creates a deployment payload for a predefined template /// </summary> /// <returns>A string xml representation</returns> protected override string CreateXmlPayload() { Deployment deployment = null; switch (VirtualMachineType) { case VirtualMachineTemplates.SqlServer2012: deployment = Deployment.GetDefaultSqlServer2012Deployment(CloudServiceName, VhdStorageAccount); break; } var document = new XDocument(deployment.GetXmlTree()); return document.ToStringFullXmlDeclarationWithReplace(); }