Create Logic Apps workflow using SDK (C#) samples - c#

We want to use Logic Apps for our solution. But we are new to Logic Apps. We want to know if it is possible to do the following using the Azure SDK.
create logic apps workflow dynamically
start / stop / delete workflow
get status of running workflow
We want to do all of above from the C# code.
Thank you

I would suggest you to have a look at Azure official document about Azure Logic App to know what are Logic Apps. Azure Logic App support us to automate workflows and business processes. See this video about how to use Azure Logic Apps to automate business process. We can also use it to define custom trigger and action. We can also monitor Logic App to know its running status.

You can use the Logic Apps management SDK found here: https://www.nuget.org/packages/Microsoft.Azure.Management.Logic/

Here is the steps for Managing Azure Logic Apps using .NET SDK
https://www.servicebus360.com/blogs/managing-azure-logic-apps-using-net-sdk/

Related

run databrick workspace from .net console app

I've got a databricks workspace that runs some python scripts to query some data. Is there a way to trigger this script in the workspace from the console app and have it output the data to azure blob storage? If so, can i pass parameters to the workspace from my app to use in the query?
Unfortunately, you cannot run Databricks workspace from the .net console app.
I would suggest you to provide feedback on the same:
https://databricks.com/feedback
All of the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.
If you are interested in deploying your app to Databricks, make sure your app is .NET Standard compatible and that you use .NET Core compiler to compile your app.
This tutorial teaches you how to deploy your app to the cloud through Azure Databricks, an Apache Spark-based analytics platform with one-click setup, streamlined workflows, and interactive workspace that enables collaboration.
You can achieve this via REST API. This could be done via Jobs API, either by:
Creating the job for your existing notebooks or Python scripts, and then triggering the job via Run now command
Using Runs Submit call - in this case you won't need to create a job, but it looks like that you can't pass parameters to a job (that's quite strange, maybe the documentation is missing)
to use REST API you need to authenticate, but this is well described in the documentation

How to set up the backend for mobile app using the offline sync feature

I'm starting with xamarin.forms mobile apps and trying to build an app using the azure offline sync feature.
In sample applications and tutorials one is asked to create a new backend project by selecting ASP.NET Web Application with the Azure Mobile App template - which in the meantime is retired.
Similarly in the azure portal the template (Web + Mobile => Mobile App) to build the backend
is retired.
So it seems the offline sync feature requires setup of specific components which no longer are provided by microsoft. Since other key features of mobile apps (push notification, authentication &
authorization, ...) are still advertised it seems to me that the offline sync feature has silently died.
So my questions are:
how to set up that backend given that those templates are no longer available?
anybody having experience with that feature in a real world application: does the offline sync feature as it was advertised has proven to be a usable feature ?
Any guidance on how to implement the backend feature (without the mentioned templates)
would be highly appreciated.
Check out the book: https://adrianhall.github.io/develop-mobile-apps-with-csharp-and-azure/ - it covers set up without the portal functionality, which - as you have pointed out - is no longer included in the portal.
"It depends" - generic offline sync always has caveats because it requires models to be created a certain way in order to support offline sync. Can you use the feature to synchronize "any" model? No. However, if you follow the rules laid down (the book I linked to, which I wrote, is a good starting point), then it works well.

Integrate Azure Dashboard in custom web applications

All my applications are using Application Insights to log their activities. I have created some queries to monitor what each application is doing or the status of them.
For personal use, I created some dashboard where I display graphs and data.
Now, I want to share this dashboard with some users. The idea is to integrate this dashboard in the company portal; so users can see the dashboard without leaving our environment or open a new tab in the browser. All my applications are build in C#. I don't want to use PowerBi.
How can I implement a dashboard in my application? What kind of configuration is it possible to have? Is there any documentation for that?
1) You'd have to use the Application Insights REST API to read data directly and write your tool to display the data (or use other existing dashboarding things that already know how to use the REST API)
or
2) add your users as "reader" users to your subscription and share your dashboards with them in the azure portal

Can we replace Azure Portal by our enterprise Client app to perform all tasks that we perform on azure protal

Does Azure offer full APIs to accomplish all tasks without opening azure portal.
I heard some REST APIs are available but not sure about their coverage.
My questions is can we replace Azure portal completely by our customized enterprise App which actually calls REST APIs provided by Azure.
here is Why I need this strange thing
We need this as our organization is developing a Internal Unified App to manage our resources on all three cloud Azure,AWS and Google Cloud from single point..
The answer to your question is yes. You can certainly do that. As Alex mentioned in his comments, take a look at Azure Service Management API to begin with.
However there are a few things I would like to point out:
As you know there are two portals right now (Live and Preview). Unfortunately both of these portals use different sets of API. Live one uses Service Management API and the Preview one uses Azure Resource Manager (ARM) API. So you have to make sure that you use both of these APIs in your application. Though Microsoft is pushing very hard to make all the APIs exposed through ARM API but there's still a lot of work that needs to be done.
Another thing I noticed is that at times documentation for REST API for certain services is missing though there are ways to find that information. Just keep that in mind if you're building support for these services and not able to find documentation.
I would suggest you start here: https://msdn.microsoft.com/en-us/library/azure/mt420159.aspx and then find out REST APIs for the services you're interested in supporting in your application.

Bulk/Batch upload of users/groups into Google

I am able to use admin SDK API and using C# standalone code and I am able to implement below operation as well.
Create User, Upadate User, Create Group, Add Membership, remove membership, reset password etc.
However I have a requirement where we need to perform bulk upload of group & users into Google. Please advice if there is any sample code or API which I can use to implement the same.
Regards,
Anurag
If you're looking for a solution to bulk user management and you're using .Net or C#, check out my gShell project which wraps the APIs with easy-to-use PowerShell cmdlets. Using this you could do something like easily reading a CSV file or calling against an LDAP environment and calling a cmdlet like Get-GAUser or Set-GAUser to make the necessary changes. You'll need to be working on a Windows OS to get the PowerShell working and you'll need some basic PoSh knowledge, but it's pretty straight forward otherwise.
It also has an option to use the gShell authentication framework in your own .Net project if you need to customize things a bit more or make an executable.
If you're looking for samples of C# code it's open source so browse away.

Categories

Resources