Create an Azure website deployment slot - REST API sample - azure

I am trying to find a sample on how to create an Azure Website (web app) deployment slot via the REST API. Any pointers would be appreciated.
Thanks!

You can use the Azure Management libraries to do this directly to the API. You can find the Libraries here and a sample of how to use them here. An extra way to do it is use the Azure Resource Manager REST API directly.

Related

How do I authenticate against Azure (subscription) from an external program

I am trying to develop a web application using which I want to be able to connect to my Azure subscription, read all my resources and display those back on my app. I only need the name, IP and resource type. I know I can authenticate against Azure using PowerShell but not quite sure how I achieve this using PHP.
Most Azure service REST APIs have client libraries that provide a native interface for using Azure services.
.NET
Java
Node.js
Python
Azure CLI 2.0 SDK
We do not have a client library for PHP. I would recommend call the Azure REST API from PHP to accomplish the task you are looking at.
https://learn.microsoft.com/en-us/rest/api/azure/
Authentication is also discussed in the link above.

Is it possible to create a new Azure Search Service with Azure Search SDK?

I am writing a admin back end to manage our Azure search stuff and I was wondering if there is a way to use Azure Search SDK to create a new Azure Search Service on Azure portal? I don't see anything in the examples on the official Azure search site.
It is possible to programmatically create Azure Search services in a few different ways:
Azure Search Management SDK
.NET
.NET (fluent)
Python
Ruby
Java (fluent)
Go
PowerShell
Management REST API
Azure Resource Manager Templates (example)
Documentation coverage for these is somewhat patchy currently. There are samples for the REST API and .NET Fluent SDK and reference documentation for some of the above.
No, you can't use Azure Search SDK to create a new Search Service. This SDK is to manage data in an existing Search Service.
To create a Search Service programmatically, you will need to use Azure Search Management library. You can read more about this here: https://learn.microsoft.com/en-us/dotnet/api/overview/azure/search?view=azure-dotnet#management-library.

Is there a Nuget package to create Azure Function Apps?

I need to create multiple Azure Function apps in different geographic locations over and over, so I need to automate this. Doing this in the Portal isn't going to scale. I thought there would be a Nuget package for doing this, but I haven't found it yet. Any ideas on how to automate the creation of Azure Function Apps?
There isn't an Azure Functions specific NuGet package or API. Functions works with the standard Azure Resource Manager APIs (consistent with the way you manage other Azure services) and new Function Apps can be provisioned using PowerShell, the Azure CLI, the ARM API or directly through the portal.
Under the "Get Started" section of the documentation I've linked to, you can find more information on how to create and manage templates.
I hope this helps!
As far as I know, there is no Nuget Package for you to do this. Per my understanding, you could leverage ARM template to create your Azure Function App.
You could try to follow the issue & code sample on GitHub about deploying Azure Function Apps with ARM to create the Azure Function App in multiple geographic locations as expected.
Also, you could follow this tutorial about deploying your resources to Azure with Resource Manager templates via Azure Power Shell.

Azure REST API for linking resources(SQLDB,Storage) to Azure cloud service

Is there any Azure REST API or powershell cmdlets available for linking the resources(SQL DB,Storage)/listing the linked resources to azure cloud services?
No!
And currently (as of 2013-09-17) the feature linked resource is just a visual enhancement in the portal. To help you easily get an idea of what components does a cloud service have. Nothing more than that.

Has Any one tried in Deploying the package programatically in Azure

Has Any one tried implementing deployment of Azure CSPKG deployment programmatically using Service Management REST API. Please share with me any guideline or website which explain me clearly. Especially I Want my Web ROle to deploy the Worker ROle where package is in Azure blob storage.
Check out this article by Neil Mackenzie. This covers working with the REST API to perform deployments. Also, you could check out the code that is used under the hood by the Windows Azure PowerShell cmdlets by looking in the code on GitHub.

Resources