0

I am using CloudShell to deploy Azure Services using PowerShell Scripts. It's a great experience.Now I want to use CloudShell to automate deployment. I am maintaining a solution in TFS/VSTS.

Is there any way or workaround to call OR to get the CloudShell instance or to run Powershell on CloudShell using some Batch command or C# or else.

Is any CloudShell API exist to use CloudShell service from .Net

Rohi_Dev_1.0
  • 372
  • 1
  • 2
  • 19
  • what do you mean by cloudshell? in the portal shell? – 4c74356b41 Oct 12 '17 at 07:50
  • I mean to say behind the scene CloudShell (yes Portal Shell) might be calling any API. If that API is open source then I can use it. It will help me to test any deployments without the need to create VM. My operation team always wants a VM to test Deployment and CloudSell itself provides dedicated VM along with all necessary installation so If I want to use it for continues deployment then is there a way? – Rohi_Dev_1.0 Oct 12 '17 at 09:08

3 Answers3

1

No, there's no API behind the CloudShell, but its just a bash shell that's using Azure CLI and Azure Powershell. You can use those on your own.

4c74356b41
  • 69,186
  • 6
  • 100
  • 141
  • Is there a way to run the PowerShell script (stored inside CloudShell storage) at a particular time or can we install a job or something? – Rohi_Dev_1.0 Oct 12 '17 at 09:21
  • well, that sounds like a really clumsy way of doing that, you can download the script from that storage, but you are better of not using that storage account to store data. it is 101% not convenient, just use your repo, grab latest commit and run those scripts – 4c74356b41 Oct 12 '17 at 09:23
  • I am thinking to use Git rather than storage – Rohi_Dev_1.0 Oct 12 '17 at 09:25
0

You can access the open source project for Azure Cloud Shell on github and run the Azure Cloud Shell container locally using docker. Not sure this meets your need, but it's a cool option nonetheless.

David Cobb
  • 680
  • 6
  • 11
-1

As per my knowledge, Azure Cloud is an interactive, browser-accessible for managing Azure resources. You cannot use Azure Cloud Shell for Continuous Deployment.

Note: Azure Cloud Shell is an interactive, browser-accessible shell for managing Azure resources. It gives you the flexibility of choosing the shell experience that best suits the way you work. Linux users can opt for a Bash experience, while Windows users can opt for PowerShell.

For more details, refer "Overview of Azure Cloud Shell (Preview)"

CHEEKATLAPRADEEP
  • 12,191
  • 1
  • 19
  • 42