Use blob-leasing feature in the Azure cloud app - azure

I want to use blob-leasing mechanism in my Windows Azure cloud app. I am using the StorageClient api released by Azure team for my blob transactions. However, the blob-leasing is not implemented in the StorageClient api and hence I need to implement it on my own.
Has anyone done this before and has any pointers on how to do it?
Thanks.
Kapil

See my recent blog post (including sample code) about how to do this: http://blog.smarx.com/posts/leasing-windows-azure-blobs-using-the-storage-client-library

Related

Monitor local Azure Functions?

Is it possible to get Information out of the Azure function SDK?
For example the Function URI. Or the count of Functions running local.
Somthing like Swagger for local Azure Functions would be the goal.
Thanks for your help.
I remember trying to use something similar to swashbuckle for Azure Functions, but there was no easy way to integrate it. This may help: AzureFunction Swagger Definition Generator
Azure Function's OpenAPI 2.0 support may provide some of the functionality you are desiring. Note that as of April 2018, it is still in preview.

Create API using Azure API management

I built a web application using react and node , and also i want to build a mobile app , so i'm trying to build REST API to manage the database . I heard about the Azure API management and trying to using it but couldn't find any tutorial that relevant with javascript
Does Anyone know good tutorial to refer??
Azure API Management is not intended to create API, it is intended to act as a proxy, to harden your API against attacks from outside. You should be using WebApp or ApiApp to create your API.
I assume that you want to build Mobile App back-end on Azure with node.js SDK.
About how to use the Azure Mobile Apps Node.js SDK, you could refer to the official documentation here: https://learn.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-node-backend-how-to-use-server-sdk.
Also, you could take the following complete series tutorial on the Node.js SDK as reference: https://shellmonger.com/30-days-of-azure-mobile-apps-the-table-of-contents/.
Any further concern or my misunderstanding, please feel free to let me know.

How to use my own API instead of using mobile API in Azure

is there any way to publish my API in azure mobile service API instead of using its own. I want just to know it, because assume I have a backup server in amazon and as you know I don't have access to azure sdk in there and it means technically I cant use the API anywhere outside the azure.
Azure mobile services is actually based on the .Net web api in their C# flavor and on node.js on the Javascript side. You could surely write an API using those technology and have the same behavior. You will gain the fact of being more portable, however you will lose some of the preconfigured stuff from Mobile services.
If you are using .NET, please check this to see how to build a Web api! http://www.asp.net/web-api.
If you are using Javascript, here is where you should start : https://nodejs.org/
Both tech are quite easy to learn and super powerfull, have fun! When your API is built, you could just publish them as an azure Web APP (http://azure.microsoft.com/en-us/services/app-service/web/) or an Azure API (https://azure.microsoft.com/en-us/services/app-service/api/) instead of the mobile App
Hope it helps, if you have more questions, please ask!
You can create and publish your own custom APIs in azure mobile service. You could even access in via azure mobile service sdk in client by using "InvokeApiAsync<>()" method.
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn614130.aspx
If you want to access the api via fidder/httpclient than AZM SDK, pass the mobile service key in HTTP header as Name:'x-zumo-application' value:'application key from portal'

Deploy Azure Package from my own WPF App

I am creating a little utility app for some of my Azure work and i would love to make it possible to deploy a azure package from within my tool.
I have a package that have been created from Visual studio and i can manual deploy it or deploy it from within VS 2012.
Anyone who know a guide or can tell me how i would deploy it from my own application?
Yes, you can do that. Everything you see as far as deployment is concerned in VS is backed by a REST API. So you could essentially write a WPF application which is a wrapper over these REST API. There're two things you would need to do:
Upload Package files to blob storage: This would be the 1st thing you would need to do. You could make use of storage client library or implement REST API for uploading package files to blob storage.
Implement "Create Deployment" Service Management API function: Take a look at the functionality here: http://msdn.microsoft.com/en-us/library/windowsazure/ee460813.aspx. Once you have uploaded the package file in blob storage (and got the blob URI), you could invoke this functionality.
As far as I know there is no API wrapper / SDK available that covers full functionality on managing Storage Accounts, Deployments etc. yet. You can use the Windows Azure Management REST API though.
In order to use this API you need to have a valid management certificate in the subscription you want to manage and sign all REST calls to the Management API with it. There should be sufficient information about how to do so in the link above.
HTH

SDK for Service Management API

Just like we have SDK for the Azure Storage [Tables, Blobs, Queues] along with the REST API;
Do we have SDK or library for handling Service Management APIs in c#...?
Naveen,
Take a look at "Microsoft.WindowsAzure.ServiceManagementClient.dll". You can find this along with Azure SDK (C:\Program Files\Windows Azure SDK\v1.4\bin directory). I think this is what you're looking at.
Hope this helps.
There's not an SDK as such, but there is this sample from Microsoft which demonstrates how you can work with the REST API in .net. The other option is you could just use the sample code as it is.
UPDATE:
MS now have a pre-release version of a management library available on NuGet. Brady Gaster has a blog to get you started.
knightpfhor's comment is correct, but since the comment we've released the MAML 1.0 libraries. I think the Storage Management Client package might be what you're after.

Resources