Wednesday, July 18, 2018

Azure CosmosDB Explorer

The newly added tool for azure cosmos db is cosmos db explorer.  Now you can use this instead of storage explorer.

What's Inside

  • Full screen real estate view for the queries and results
  • No need of access of azure subscription portal any more. Access your database account and collections with a connection string
  • Share your query result as read only view with your colleagues. (Does not require Azure portal access)
  • No desktop tools needed anymore. Work with cosmos db directly with Explorer

Thursday, July 5, 2018

Static website hosting for Azure Storage

The public preview of static website hosting for Azure Storage has released on June 28, 2018!
The newly released feature set is available in all public cloud regions with support in government and sovereign clouds coming soon.These new feature enable a cost-effective and scalable solution for hosting integrated modern web applications on Azure.

Usually on a static website, webpages contain static content and JavaScript or other client-side code.But when it comes to dynamic websites, it depends on server-side code, and can be hosted using Azure Web Apps.
But now a day’s deployments shift toward elastic, cost-effective models, the ability to deliver web content without the need for server management is critical.
As Azure introduces static website hosting in Azure Storage makes this possible. This will enable rich backend capabilities with server less architectures with Azure Functions and other Paas (Platform as a Service) Services.

By enabling  static websites on storage account, a new web service endpoint is created as follow


Getting started
·      Supporting Platforms
Net Client Library (version 9.3.0), Java Client Library (version 8.0.0), Python Client Library (version 1.3.0), Node.js Client Library (version 2.10.0), Visual Studio Code Extension (version 0.4.0), and CLI 2.0 (extension version 0.1.3).
Storage Explorer and Powershell support will be available soon.
Storage Services REST API is available now.
Static websites is supported by REST API version 2018-03-28 and greater (Azure recommended using the latest always)

·      How to Access
1.     Create a GPv2 Storage Account on Azure

2.     Click On the Newly Created Storage and you will see a link on settings section in the left navigation bar and Enable it.

3.     Upload web assets to $web Container. (Created when Static website enabled)

To do this you can directly access azure portal or can take advantage of the Visual Studio Code Extension to upload entire directory structures.
Visual Studio Code:
Right click on the $web container, select Deploy to static website and find the directory you want to upload
Make sure to include an index document with the name you configured. In this example, the document's name is index.html.

The web service endpoint always allows anonymous read access, returns formatted HTML pages in response to service errors, and allows only object read operations. The web service endpoint returns the index document in the requested directory for both the root and all subdirectories. When the storage service returns a 404 error, the web endpoint returns a custom error document if you configured it.

Volla! Go to your primary endpoint and test your site.

Thursday, April 19, 2018

Data Subject Request (DSR) Processing coming to Azure

Of course your company does not want to throw away 20 million euros or 4% of your annual turnaround for not having data related to EU citizens regulated. Azure Infrastructure team understands that too. That is why they are planning to introduce the Data Subject Request (DSR) capability with Azure in near future. 

GDPR Compliance is centered around the following concepts
  • Consent
  • Right to Access
  • Personal Data Defineation
  • Breach Notification
  • Right to be forgotten
  • Privacy by Design
  • Data portability
  • Data Protection Officers (DPO)

Monday, March 26, 2018

SharePoint Webhooks

Webhooks is a brilliant way to stay updated on things happen around a service. Many services and products running on cloud allow developers and other interested parties to listen to the responses sent via HTTP Post. Its like a subscription for a newsletter and they sends whenever there is a new edition. 

We need four sources of information in order to create a webhook.

  • Resource url - The list or site url that you will be subscribed to.
  • Subscriber url - The url where the HTTP Post request will be received by.
  • Expiration date - By default, a webhook expires in 6 months after it is created and that is the maximum, you can make lower if needed.
  • Client state - This is a non mandatory text you can include if necessary for the validation processes and any other at the receiver end.

Monday, February 5, 2018

SPFx Introduction at IT Faculty UOM

An introduction session on what is SharePoint Framework and how can any developer from different technology stacks can start using it straight away was held at IT Faculty premises for the students who completed their industrial training 6 months.

Although it was a totally new thing for most of them, they were delighted what is supported by SharePoint Framework and how can it help different applications from different technology stacks can help connect with SharePoint.

Branching Logic in SharePoint Surveys

Surveys in SharePoint has helped us a lot for the businesses. You can easily setup a survey and record the input data in a SharePoint list. Branching logic makes it much easier for surveys to have the IF-ELSE conditions within the surveys. 

I have setup a sample survey that is intended to collect feedback from participants of a work survey. 

Work survey list settings page
 As the image shows, I have a question that asks whether the user is happy about the service or not. 

I will only need to get the negativity feedback only if the attendee is not happy. 

Likewise, I only need positive feedback if attendee is happy. 

After laying out the questions, I am going to the question settings page of the first question: Are you happy with the work?

Wednesday, January 24, 2018

Introduction to Microsoft Graph for SharePoint at SP Sri Lanka User Group

Monthly Meetup of the SharePoint Sri Lanka User Group for January 2018 was held at Microsoft Sri Lanka premises. 

I conducted a session on 'Introduction to Microsoft Graph for SharePoint'. The session covered the importance and the advantages of Microsoft Graph, authentication options and application of SharePoint related endpoints for the Microsoft Graph.