Coder Social home page Coder Social logo

vsts.extensions's People

Contributors

akuryan avatar nschonni avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

vsts.extensions's Issues

Create switch to use either URL to template or file path to template

This will allow to remove requirement for hack:
In Sitecore Deploy task in field Additional ARM parameters define following string templateLinkBase=$(storageUri)/$(blobPrefix)/ \n templateLinkAccessToken=$(storageSas)
This allows to inject URL for storage account and it's SAS, so, template starts deploying from local disk, but will get nested templates from Azure Storage account (actually, this is ARM limitation: you could not use nested templates from local disk - they shall be always located on URI, accessible to host, which is executing script, hence, this upload to Azure Storage task addition)

Shall be done like this:
Add a dropdown "Template location" with values filePath and URI
If filePath is selected - leave command as is
If URI is selected - all commands New-AzureRmResourceGroupDeployment must have parameter -TemplateUri instead of -TemplateFile

Error when using license URL

Hi Anton,

Good idea to make an extension for deploying Sitecore.
I am trying to use this extension for deploying the infrastructure.
I am using the ARM Templates for Sitecore 9.0.2
https://github.com/Sitecore/Sitecore-Azure-Quickstart-Templates/tree/master/Sitecore%209.0.2/XPSingle

In my build definition I filled in all the parameters in the azuredeploy.parameters.json but I get the following errors.
##[error]Cannot process command because of one or more missing mandatory parameters: sitecoreAdminPassword licenseXml sqlServerLogin sqlServerPassword singleMsDeployPackageUrl xcSingleMsDeployPackageUrl.

Do you have any idea why I get this error?

Kind regards,
Martijn

Parameters file parsing shall be fixed

If default parameters file is used, then Powershell receives just one object "parameters", instead of collection.

{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": { }
}

This means, that I need to perform additional changes in my params files :( currently to remove schema and contenVersion

VSTS extensions: use make.json

https://github.com/Microsoft/vsts-tasks/blob/master/Tasks/AzurePowerShellV3/make.json
As far as I can understand - this will allow me to minimize noise of stored data in repositry (like moving AzureHelpers to common folder, adding common Tls12 helpers, retrieving SDK from Nuget)

Seems to be connected with make.js and make-util.js (which will do everything).
Need to work it out further
At this time, we are using TlsHelper_, VstsAzureHelpers_ and VstsTaskSdk - this shall be moved to Common folder

https://github.com/Microsoft/azure-pipelines-tasks/blob/1d75fa8f66aa1cf7a9cb62946939f30f087b2969/Tasks/ServiceFabricUpdateManifestsV2/make.json

Update code that sets IP restrictions to work with latest API

Currently, to set IP restrictions on web app, powershell is using API 2016-08-01, which consumes following object:

$webIP = [PSCustomObject]@{ipAddress = ''; subnetMask = ''}

However, newer API version 2018-02-01 consumes other object:

$rule = [PSCustomObject]@{
    ipAddress = "$($clientIp)/32"
    action = "Allow"  
    priority = 123 
    name = '{0}_{1}' -f $env:computername, $env:USERNAME 
    description = "Automatically added ip restriction"
}

I need to test, if it will work with current implementation of mask recommended (255.255.255.255). If it works - then it is easy to update basing on this example: https://github.com/mjisaak/azure/blob/master/Add-AzureIpRestrictionRule.ps1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.