SlingShot is a service that enable one click deploy your web app from your repository to Azure App Service
All you need to do is place below markdown to your README.md file.
[![Deploy to Azure](https://azuredeploy.net/deploybutton.svg)](https://azuredeploy.net/)
or HTML if you like
<a href="https://azuredeploy.net/" target="_blank">
<img src="https://azuredeploy.net/deploybutton.svg"/>
</a>
Behind the scene, azuredeploy.net get the repository url from referal url and redirect request to deploy.azure.com. And some of the query strings from repository url will be honored. We can utilize these query strings for advance configuration.
[![Deploy to Azure](https://azuredeploy.net/deploybutton.svg)](https://deploy.azure.com/?repository={your repo url}?ptmpl={url to paramter json file or relative path from current repo})
e.g
[![Deploy to Azure](https://azuredeploy.net/deploybutton.svg)](https://deploy.azure.com/?repository=https://github.com/shrimpy/ArmParamterTemplateTest?ptmpl=https://raw.githubusercontent.com/shrimpy/ArmParamterTemplateTest/master/parameters.azuredeploy.json)
[![Deploy to Azure](https://azuredeploy.net/deploybutton.svg)](https://deploy.azure.com/?repository=https://github.com/shrimpy/ArmParamterTemplateTest?ptmpl=parameters.azuredeploy.json)
[![Deploy to Azure](https://azuredeploy.net/deploybutton.svg)](https://deploy.azure.com/?repository={your repo url}?ptmpl={url to paramter json file or relative path from current repo})
e.g
[![Deploy to Azure](https://azuredeploy.net/deploybutton.svg)](https://localhost:44300/?repository=https://bitbucket.org/shrimpywu/armparametertemplatetest?ptmpl=https://bitbucket.org/shrimpywu/armparametertemplatetest/raw/master/parameters.azuredeploy.json)
[![Deploy to Azure](https://azuredeploy.net/deploybutton.svg)](https://localhost:44300/?repository=https://bitbucket.org/shrimpywu/armparametertemplatetest?ptmpl=parameters.azuredeploy.json)
[![Deploy to Azure](https://azuredeploy.net/deploybutton.svg)](https://localhost:44300/?repository={repository url}?pr={pull request id})
e.g
[![Deploy to Azure](https://azuredeploy.net/deploybutton.svg)](https://localhost:44300/?repository=https://bitbucket.org/shrimpywu/armparametertemplatetest?pr=1)
[![Deploy to Azure](https://azuredeploy.net/deploybutton.svg)](https://localhost:44300/?repository={repository url}?manual={true/false})
e.g
[![Deploy to Azure](https://azuredeploy.net/deploybutton.svg)](https://localhost:44300/?repository=https://bitbucket.org/shrimpywu/armparametertemplatetest?manual=true)
[![Deploy to Azure](https://azuredeploy.net/deploybutton.svg)](https://localhost:44300/?repository=https://bitbucket.org/shrimpywu/armparametertemplatetest?ptmpl=https://bitbucket.org/shrimpywu/armparametertemplatetest/raw/master/parameters.azuredeploy.json&pr=1)
slingshot.sln
with VS 2012+ and compile.Add an application my organization is developing
WEB APPLICATION AND/OR WEB API
https://localhost:44306/
as SIGN ON URL
APP ID URL
, enter something like https://davidebboslingshot.onmicrosoft.com/
.CONFIGURE
tabPermission to other applications
, add Windows Azure Service Management API
and check Access Azure Service Management
for Delegated Permissions
and save.CLIENT ID
and paste it in this line, replacing Environment.GetEnvironmentVariable("AADClientId")
.Keys
section, create a client secret. Copy the key and paste it in the same file, replacing Environment.GetEnvironmentVariable("AADClientSecret")
.Or as a cleaner alternative, you can set the AADClientId
and AADClientSecret
environment variables on your machine so that the code picks it up without having to modify it.
https://localhost:44306/api/token
- show current token details.https://localhost:44306/api/tenants
- show all tenants (AAD directory) user belongs to.https://localhost:44306/api/tenants/<tenant-id>
- to switch tenant.https://localhost:44306/api/subscriptions
- list subscriptions.https://localhost:44306/api/subscriptions/<sub-id>/resourceGroups
- list resourceGroups for a subscription.https://localhost:44306/api/subscriptions/<sub-id>/resourceGroups/<resource>/providers/Microsoft.Web/sites
- list sites.Any issue, do let me know.