Skip to content

Sample Script (Powershell, X-CLI, RestAPI, etc) related to Windows Azure Websites

Notifications You must be signed in to change notification settings

kexuelou/WAWS-Scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WAWS-Scripts

Sample Script (Powershell, X-CLI, RestAPI, etc) related to Windows Azure Websites

##NodeCrashDump Powershell script can be run as webjob. It will attach to the node.exe automatically and monitoring for exceptions/crashes.

This can also be used for w3wp.exe and php-cgi.exe.

###Usage Download the zip, change the deploy user name and password. Zip it again ,and then upload the zip as triggered webjobs. For more about deploy credential:
https://github.com/projectkudu/kudu/wiki/Deployment-credentials

###Note When using this, it's better:

  1. Enable Always-On feature
  2. Set the WEBJOBS_IDLE_TIMEOUT to a value which is longer enough

##MonitorProcesses Powershell script can be run as Continuous webjob. It uses Kudu Rest API to get the processes info like name, ID, and resoruces usage into CSV file.

Whenever there is a problem, we can analyze this CSV output for:

  1. resource usage
  2. Process restart

##WebApp Migration Validation Currently we don’t support migrating subscriptions in this state.
• The site “foo” is in resource group "Rg1"
• The site is hosted in App Service Plan "bar"
• App Service Plan “bar” is in resource group "Rg2"

In order for the customer to migrate their subscription they’ll need to move their site to the same resource group as the App Service Plan the site is hosted in.
https://azure.microsoft.com/en-us/documentation/articles/resource-group-move-resources

This is hard when you have lots of WebApps. Prior to migration, you can run this script. This script checks the state mentioned above, and help you move the site(s) if required.

About

Sample Script (Powershell, X-CLI, RestAPI, etc) related to Windows Azure Websites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published