Tuesday, June 7, 2022

Serverless components in Azure





Azure Serverless components are categorized as below.








Compute


                Azure Functions
                Azure App Services
                Azure Kubernetes Services (AKS)

Workflows and Integration
                Azure LogicApps
                Azure API Management
                Azure Event Grid
                Azure Service Bus

DevOps
                Azure DevOps

AI and ML
                Azure Cognitive Services
                Azure Bot Services
                Azure Machine Learning

Database
                Azure Cosmos DB
                Azure SQL Server Serverless

Storage
                Azure Blog Storage

Monitoring
                Azure Monitor

Analytics
                Azure Stream Analytics

Monday, June 6, 2022

What is Azure Functions

 

What is Azure Functions?
                Azure Function is a serverless solution / compute service to execute user code based on an event-triggered without maintaining any infrastructure or provisioning any system to execute the code. Azure Function provides the capability to host & execute the user-defined code without provisioning infrastructure.


What are the Azure Functions Versions?
At the time of writing, the current version of Azure Function is 4.x.

Azure Function Version

Support Level

.net Framework version

4.x

GA

.net 6.0

3.x

GA

.net core 3.1

2.x

GA

.net core 2.1

1.x

GA

.net framework 4.7.2

 

What are the programming languages that are supported by Azure Functions?
Currently, Azure Function supports the following programming languages.

  •        C#
  •        F#
  •        Python
  •        TypeScript
  •        JavaScript (Node JS)
  •         PowerShell
  •         Java

Sunday, June 5, 2022

What is Serverless Computing ?


Serverless Computing

Serverless Computing is a cloud-native development that enables developers to focus on their actual development rather than managing infrastructure like OS, Software, hardware etc. 

With the serverless environment, the cloud provider manages infrastructure to run the code without installing any other applications/software. The developer no need to worry about scaling, infrastructure management and provisioning etc.

 

Serverless Computing from different cloud Providers.


Microsoft :

Azure Functions is a cloud service available on-demand that provides all the continually updated infrastructure and resources needed to run your applications.


Amazon Web Services:

AWS Lambda is a serverless, event-driven compute service that lets you run code for virtually any type of application or backend service without provisioning or managing servers.


Google Cloud Platform :  

Run your code in the cloud with no servers or containers to manage.


Oracle
           Oracle Functions
          Oracle Functions is a fully managed, multi-tenant, highly scalable, on-demand, Functions-as-a-Service platform. 

Benefits of Serverless Computing
  • Scalability
  • High Availability
  • Pay only the resources what do you use
  • No need to manage servers / Infrastructure

Happy Learning

Saturday, November 20, 2021

Get Workflow Run in Power Automate

Fetching Current PowerAutomate run URL in PowerAutomate Execution.


User workflow() function get the workflow details like below.


{
    "id""/subscriptions/867c59c8-8ae4-4b5e-b8ac-42639cd138f8/resourceGroups/7FC0A0648A1B4AEFA1F6E9F486721D49-5FBBA43E94204DD7AEE99769217868F4/providers/Microsoft.Logic/workflows/0a2d10c7-3eff-49cf-8d28-cac30b80c938",
    "name""0a2d10c7-3eff-49cf-8d28-cac30b80c938",
    "type""Microsoft.Logic/workflows",
    "location""centralindia",
    "tags": {
        "flowDisplayName""Button -> Compose",
        "environmentName""Default-7fc0a064-8a1b-4aef-a1f6-e9f486721d49",
        "logicAppName""0a2d10c7-3eff-49cf-8d28-cac30b80c938",
        "environmentFlowSuspensionReason""Default:2D7fc0a064:2D8a1b:2D4aef:2Da1f6:2De9f486721d49-None"
    },
    "run": {
        "id""/subscriptions/867c59c8-8ae4-4b5e-b8ac-42639cd138f8/resourceGroups/7FC0A0648A1B4AEFA1F6E9F486721D49-5FBBA43E94204DD7AEE99769217868F4/providers/Microsoft.Logic/workflows/0a2d10c7-3eff-49cf-8d28-cac30b80c938/runs/08585641834146598604056559039CU16",
        "name""08585641834146598604056559039CU16",
        "type""Microsoft.Logic/workflows/runs"
    }
}

To get the Workflow Run URL use the below expression. 

workflow()['run']['id']


The output will be link, 

/subscriptions/867c59c8-8ae4-4b5e-b8ac-42639cd138f8/resourceGroups/7FC0A0648A1B4AEFA1F6E9F486721D49-5FBBA43E94204DD7AEE99769217868F4/providers/Microsoft.Logic/workflows/0a2d10c7-3eff-49cf-8d28-cac30b80c938/runs/08585641385837809218807817873CU16

This detail can be used to store for some auditing purposes or later use.

Happy Coding !

Microsoft Visual Studio 2022

On Nov 8th 2022, Microsoft launched Visual Studio 2022 with the following features. 

Here I listed only few important features.
 • 64-bit support
 • Hot Reload 
 • Debugging improvements 
    o Hit Once breakpoint 
    o Dependant breakpoint 
 • IntelliCode Improvements 
 • Web Live Preview on ASP.NET applications 
 • Editor Improvements
 • Testing Improvements
 

Tuesday, November 10, 2020

Deleting Hub SItes - SharePoint Online

How to delete Hub Sites from SharePoint Online Admin Console?

You may noticed on SharePoint Admin site, when you're trying delete Hub Site, the delete option will be disabled.

To delete the Hub Site, first Unregister as Hub Site and delete it. 

Note: Deleting a hub site will not delete associated site's content and just it removes the hub site association only.

It could be simple tip but definitely it will help someone who is new it.


  


Friday, August 21, 2020

SharePoint Online : Authenticate Sharepoint using pnp authentication manager

 

Just 2-3 lines of code of helps you to bring SharePoint login pop and helps MFA (Multi-Factor Authentication) if it is enabled.

var targetTenantUrl = "https://domain.sharepoint.com/sites/Test1";

 ClientContext context = new ClientContext(targetTenantUrl);

var authManager = new OfficeDevPnP.Core.AuthenticationManager();

context = authManager.GetWebLoginClientContext(targetTenantUrl);



Happy Coding !


SharePoint Online : Creating Communication Site via C#

Here is the simple code snippet to create Communication Site in SharePoint Online from C# program.


var communicationContext = await context.CreateSiteAsync(new CommunicationSiteCollectionCreationInformation

{

    Title = "Communication Site", // Mandatory

    Description = "Communication Site", // Mandatory

    Lcid = 1033, // Mandatory               

    Classification = "classification", // Optional

    SiteDesign = CommunicationSiteDesign.Topic, // Mandatory

    Url = "https://domain.sharepoint.com/sites/Demo", // Mandatory

});

communicationContext.Load(communicationContext.Web, w => w.Url);

communicationContext.ExecuteQueryRetry();

Console.WriteLine(communicationContext.Web.Url);


Hope this helps someone while starting with SharePoint Online with C#.