Search This Blog

Showing posts with label Azure. Show all posts
Showing posts with label Azure. Show all posts

Friday, June 3, 2022

ASP.NET - Azure AD integration

 very good tutorial


https://docs.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-asp-webapp 



Azure B2C is very cool 

https://www.youtube.com/watch?v=RK_IaEvzdpM



Thursday, May 16, 2019

Azure for developer az-203 - session


https://docs.microsoft.com/en-us/azure/

for power shell use AZ package.

Azure Rest Api Browser - to test all Azure rest API

Azure quick start templates  - list of predefined template to use .

Azure Storage Explorer - a tool to manage storage on AZURE from your desktop, you might need to install newer emulator (msi installer)

File sharing storage type - its like a network drive.

SQL server - there is two mode of price vCpu && DTU - dtu is chipper but you need to be aware.

SQL Azure Tutorial
https://docs.microsoft.com/bs-latn-ba/azure/sql-database/sql-database-single-database-get-started


DDD Domain-driven design   - new design pattern. 


App Service Plan - its multi-tenant .
App Service Environment  - your private VNet , single tenant

in  Service plan we create web app , or Api app.

the way to host web app in azure is to:
create app service plan , under resource group.

in the web-app under azure  - there is log stream that you can see all the trace command from c#.
system.dagnostic.trace.writeln

Use Swagger to expose your API in a friendly name.

Security:
Azure AD (AAD)
ADB2C

Authentication method :
Windows Auth (NTLM/kerberos)
Form Auth     (user)
Basic Auth    (user or api)
Digest
SAML            (ws-*)
Bereer(JWT) -- jwt.io   (rest  json)   ---  use Open ID Connect , OAuth 2.0 - we get token with claims


Monitor
create application insights resource
there is ability to report from any agents such as windows console application to report to Azure monitors tools (insights) you can add simple traces and event that contains more details .

handling transient errors - (temporary error , such as no network, locks on db , busy i/o)
in transient error - we will do retry first , in case its failed we will wait X units of time , till cancel.
X will be exponential time ( 2,4,8..... CANCEL)

Enterprizelibrary.transientlibarry

Dockers:
install docker for windows desktop
tutorial could be found at https://docs.docker.com/docker-for-windows/

Azure ACI - Azure containers instances
Azure ACR - Azure container registry
Azure AKS  - Azure Kubernetis Service 

Saturday, January 24, 2015

Windows Azure - Seminar notes

Azure training-kit  - The Azure Training Kit includes a comprehensive set of technical content designed to help you learn how to use Azure.
https://github.com/Azure-Readiness - good place for starting labs

Azure Services:

  • Web Sites - your own web site on Azure could be on IIS,Tomcat,Jetty
  • Virtual machine -  there are predefind VM you can use such as  linux , windows server , web logic, windows with VisualStudio , Oracle DB  
  • Mobile services - for mobile developers 
  • SQL databases
  • Cloud services  
  • Media services 
  • Storage 
  • Visual studio Online 
  • Traffic Manager - like load balancer 
  • Network  - managed private network  (VPN)
  • Adding Add On - such as mongodb , MS translator .. and many others add on.

  • On Azure the data replicate(saved the image) into 3 "section" , one of them into different data center - you can control this.

  • On Azure you can use any language (java, ruby ..) to develop , you can use open source .
  • In Azure - you can access to your private network - e.g. access your db in your domain.
  • Azure Web sites - are powerful feature in azure , very easy and smart  and strong.
  • you can set your datacenter - e.g for Israel user - its better to choose North Europe Data Center.
Azure Web Site
  • if your web site need to host images and video its better to use Azure storage , for storage you can have direct access to resource, you can put CDN on top storage resource.
  • in the application configuration you can configure it to support websockets , application logging (system.diagnostics.trace) , and many diagnostic feature even debug remotely.
  • there are free , shared , and dedicated server (basic / standard).
  •  there are power shell command to connect to azure from command line - its a multi platform env , you can run commands from MAC for example.
  • for each web site you can access via ftp via user/password.
  • you can deploy your site via ftp, you can deploy from source control -  (continues integration), even directly from VisualStudio.
  • you can edit your web site files via VS online.
Azure Cloud Service 
  • its a container of related Web role and Worker role
C++ on the cloud - The C++ REST SDK (codename "Casablanca") is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. 


Thursday, July 1, 2010

Slides from "Architecting for the Cloud" - Azure seminar

The next link, is to the post  of Danny Cohen who was the lecture on this interesting session "Architecting for the Cloud", Danny is a microsoft consultant , the seminar & Danny was very good , period.
here you can find all the slides.
Architecting for the Cloud (slide decks)
i am sure you’ll find them interesting and helpfull....

enjoy
Yaniv T

Tuesday, September 22, 2009

using MFC dll's on Azure

Hi
I read somewhere that you can not run MFC dlls in the Azure platform , so its is wrong!!!
i managed to use mfc dll that i developed on .... VC++ 6.0 . in the Azure .
Be aware i didnt test MFC dll that developed on visualstudio 2005/2008.
how did i call my 32bit mfc dll from the web_role that runs in 64 bit ???
i created a WCF self host that using named pipe (net.pipe) , and when the web role loaded i run this self host , and from the self host i call to my native library ,via dllimport , the regular way.

When i deploy my package i didn't add any extra dll , its looks like the instance already have the needed library to support my mfc dll.

more than that my dll connect to sql server via odbc(CDatabase, CRecordSet) , so i just needed to change my connection string to point to sql azure ,and boooom i managed to make it work in the Azure too , again no extra dll needed to the package.

some useful links :
Using a 32bit Native DLL in Windows Azure
Executing Native Code in Windows Azure and the Development Environment
MSDN FullTrust Sample

i hope its save you some test time.
Yaniv

Monday, September 7, 2009

Connect to SQL Azure - starter links

Recently i am dealing with SQL azura , a relational db on the cloud from Microsoft.
here are some starter links to put you in the map:
SQL Azure Database - HOME .
Microsoft SQL Azure FAQ.
you will have to create your account for SQL Azure (CTP this days), after you will get your code you can manage the DB's.
for a complete set of action how to connect to your DB from your preferred tools , i found the next post First Impressions with the New SQL Azure that will give you a good starting way to interact with your cloud db the
Connecting to SQL Azure from SQL Management Studio 2008 can help too if needed.
NOTES:
if you are in the office and you have a firewall , you will have to open it for:
Access type: outbound
Destination port: 1433
Destination IP range: 65.55.*.*

In addition, if your network has a proxy server for accessing the Internet then you need to configure your proxy server to allow outbound 1433 connections and you need to configure your system to use the proxy server.
this from here Firewall Issues.

hope its help you to start your cloud db - i hope its works well.
and of course MSDN link - SQL Azure .
another good blog The latest news and insight from the SQL Azure team.

enjoy
Yaniv