Skip to content

Conversation

@jochenvw
Copy link
Contributor

Added deployment configuration that deploys an Ubuntu 14.04 box and installs the latest cross platform DNX. After that - a sample console application is scaffolded and built so a 'hello world' from C# .NET code on Linux is a one-liner after deploying the machine.

@azurecla
Copy link

Hi @jochenvw, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!


It looks like you're working at Microsoft (jowylick). If you're full-time, we DON'T require a contribution license agreement.



If you are a vendor, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;

@jochenvw
Copy link
Contributor Author

@singhkay Could you please review this PR? Thanks

@jochenvw
Copy link
Contributor Author

@mahthi / @singhkay Could someone please review this PR - would love to see it in master! If you have any feedback, just let me know.


This template will install the cross platform .NET execution context (DNX) on an Ubuntu Server installation, which allows you to write .NET apps on Linux!

<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fjochenvw%2Fazure-quickstart-templates%2Fmaster%2Fdnx-on-ubuntu%2Fazuredeploy.json" target="_blank">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The links should point to Azure location

@singhkays
Copy link
Contributor

@jochenvw Thanks for creating a template for this unique scenario! Left some comments to address

@jochenvw
Copy link
Contributor Author

jochenvw commented Jun 2, 2016

@singhkay Awesome - thank you very much for your in-depth review. I'll patch up the code and update the PR. Kudos on maintaining the standards on the templates, I'll step my game up.

@singhkays
Copy link
Contributor

@jochenvw Thanks for the update! Can you use camelCase for the parameters and variable names?

@jochenvw
Copy link
Contributor Author

jochenvw commented Jun 2, 2016

@singhkay Done - but I can't make anything of the Travis build error. Any tips?

AssertionError: Template Validiation Failed. Try deploying your template with the commands:
azure group template validate --resource-group (your_group_name)  --template-file dnx-on-ubuntu/azuredeploy.json --parameters-file dnx-on-ubuntu/azuredeploy.parameters.json
azure group deployment create --resource-group (your_group_name)  --template-file dnx-on-ubuntu/azuredeploy.json --parameters-file dnx-on-ubuntu/azuredeploy.parameters.json 
Server Error:{
    "error": {
        "code": "ENOTFOUND",
        "errno": "ENOTFOUND",
        "syscall": "getaddrinfo",
        "hostname": "arm-validator.40.118.211.57.xip.io"
    }
}

@singhkays
Copy link
Contributor

@jochenvw np, that's transient failure with the wildcard dns service xip.io. I've kicked off the build again.

"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"VMAdminPassword": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this and others below should be vmAdminPassword :)

}
},
"variables": {
"NIC name": "dnx-on-ubuntu-nic",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename these variables to camelCase as well. e.g. nsgName

@singhkays
Copy link
Contributor

singhkays commented Jun 2, 2016

@jochenvw We're good from deployment passing but I'm still seeing some non camel case parameters and variables. Left some comments where updates are needed. Also take a look at some of the existing templates to get an idea of how the parameters and variables are laid out https://github.com/Azure/azure-quickstart-templates/tree/master/201-customscript-extension-public-storage-on-ubuntu

jochenvw added 2 commits June 3, 2016 09:37
- Replaced 'VM*' by 'vm*'
- Camelcased variables
- Used prefix notation for variables for DRY-ness
- Replaced location by [resourceGroup().location] 
- Added "autoUpgradeMinorVersion": true, 
- Removed default username and password
@jochenvw
Copy link
Contributor Author

@singhkay I implemented all your feedback, does it look better now?

@singhkays
Copy link
Contributor

@jochenvw Thank you for updating! merged

@singhkays singhkays merged commit 5be8b13 into Azure:master Jun 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants