Microsoft cloud engineer - SharePoint, Office 365, Azure, DotNet, Angular, JavaScript.
Microsoft cloud engineer - SharePoint, Office 365, Azure, DotNet, Angular, JavaScript.

Azure

VIDEO – Azure Function running F5 on localhost

Wanted to share brief for creating a new Azure Function 2.0 on localhost.  Followed quick start wizard within Azure for steps.  Initially received error message pressing F5 but able to resolve by navigate down three folders and run command manually.  Root cause was local PowerShell configuration.   Updating “$profile” to remove Change Directory commands (“CD C:\CODE”) resolved the F5 error with Azure function not starting.

Thank you to @nthonyChu and @fiveisprime for help troubleshooting.   Cheers. 

shades_smile

Error

Unable to find project root. Expecting to find one of host.json, local.settings.json in project root.

Resolution

  1. Launch PowerShell
  2. Run “notepad $profile
  3. Remove any “CD” commands with modify working directory
  4. Save and restart

Workaround (Temporary)

  1. Navigate down 3 folders with cd “bin\debug\netcoreapp2.1\”
  2. Run “func start host

Video

Screenshots

image
image
image
image
image

VIDEO – Create and connect to Oracle in Azure

Wanted to record a demo of how to create Oracle 12 instance in Azure and connect with GUI tools from Windows client.   Video shows full processing (including troubleshooting) with TCP firewall, DBCA create command, system password, and all.    Great way to build personal dev environment to learn Oracle connection strings and syntax, while staying out of live production corporate Oracle system.

Cheers. 

shades_smile

Video

Code

ssh adminUser@publicipaddress
sudo su - oracle
lsnrctl start

# Find file
find / -name sqlplus -print

# Environment variables
ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1; export ORACLE_HOME
ORACLE_SID=cdb1; export ORACLE_SID
PATH=$PATH:$ORACLE_HOME/bin

# Connect Oracle SQL Developer GUI
system
OraPasswd1

# Display Version
SELECT * FROM v$version

Screenshots

image
image
image
image
image
image

References

VIDEO – Validate Azure AD Username Password

Applications often need a way to validate current user account.   For example, completing online forms and provide signature with password.  With Active Directory on-premise, the [System.DirectoryServices] namespace can be used to validate username and password with [PrincipalContext] and [ValidateCredentials].

With Azure AD, different methods are needed.  Video demo below.  Source code available at https://github.com/spjeff/VerifyAzureAD/

Cheers! 

shades_smile

Video

References

© Copyright 2016
@ SPJeff

Return to Top ▲Return to Top ▲