New Power Platform User

You need to have System Administrator permission to create new power platform user.

Go to link to see steps to create new power platform environment
Go to link to see steps to identify power platform data center location

  • Log into admin.powerplatform.microsoft.com
  • Go to Environment from navigation bar on the left
  • Select desired environment from all available environment list
  • Select “see all” under users section, as shown below on the right side of screen
admin portal
  • Click on “+Add user” from top bar to create new power platform user
  • This will open new user form on right side of screen
add user
  • Enter name or email address and click save
new power platform user
  • Select newly created user from list of all users
  • Under roles, go to manage role link
manage roles
  • Select desired permission for the user and save the settings

Power App Environment Region

When we create new power app environment, we can select region from a drop down. We have option to select United States as region, but we can’t decide if this environment will be in East US or West US.

Power app environment data center location (i.e. East, West) is automatically decided by Microsoft based upon the tenant configuration.

This post go through steps to find out environment data center location e.g. East US or West US. This information is useful while setting up azure resources for synapse link for dataverse.

  • Go to link to find out steps to create new environment
  • Go to link find more information about synapse link for dataverse
  • Go to link to find steps to create new power platform user

Find power app environment region

  • Log into make.powerapps.com
  • Select environment from top right of the screen as shown below
Environment
  • Go to Dataverse from navigation bar on the left side of screen
  • Select “Azure Synapse Link” option available under Dataverse
azure synapse link for dataverse
  • Click on new link button
  • This will take you to new synapse link setup page
  • We will not setup synapse link in this post, but we are here to find out region of power app environment
synapse link
  • New link page show environment data center region. In this case Environment Region is United States and data center is West US, as shown below
power app environment region

New Power App Environment

You need to have power platform System Administrator permissions to create new power app environment.

Go to link to see steps to identify power app/platform data center location

power app environments
  • Click on “+ New” from bar on top of the screen
  • On new environment screen we can select environment name, region and Type
new environment
  • Following regions are available from region drop down
  • Click on save after providing environment details
  • Go to link to find steps to figure out power app environment region (data center location e.g. East US, West US)
power app environment regions

Developer Tab – Excel

Following below steps to enable developer tab from excel workbook options.

Steps to enable developer tab

  • Open Excel workbook
  • Go to File and then options on the bottom left of screen
file
  • Select customize ribbon from excel options on the left
  • Select Developer from “customize the ribbon” list on the right (as shown below)
  • Close options by clicking on OK in bottom left
  • Developer tab should now be available in excel ribbon
Developer Tab
Developer Tab

Related Links

Excel Dynamic Row Highlight

Row Highlight – Excel

This post will explain steps to highlight selected row in excel. Row highlight will change dynamically based upon selection change.

This can be helpful during a meeting or discussion to keep audience focused on excel row in discussion. Find below steps to setup this functionality.

Steps: Row Highlight Configurations

  • Open excel file
  • Select cell range containing data
  • Go to conditional formatting and select new rule. This will open new formatting rule window.
Excel Row Highlight
Conditional Formatting

Following link to learn more about excel conditional formatting

  • Select “use a fornula to determine which cells to format”. As shown below.
  • Paste following formula in formula field
=ROW()=CELL("ROW")
  • Select format button right next to preview area
  • Go to fill and select background color for the selected row
Formatting Rule Window
Formatting Rule Window
Cell Fill
Cell Fill
  • Apply and close format cells and new formatting rule windows
  • Final conditional formatting setting will look like below
Final Format Settings
Final Format Settings
  • Next go to developer tab in excel as shown below and select “View Code”

Go to link to see steps to enable excel developer tab

Developer Tab
Excel Developer Tab
  • Select worksheet from drop down as shown below
  • This will open code block behind excel worksheet
Excel Code Editor
Excel Code Editor
  • Add following code in code editor (as show in screenshot below)
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Target.Calculate
End Sub
Worksheet updated code block
Worksheet updated code block
  • Close code editor and go back to excel sheet
  • Configurations are completed. Now we can test if “Highlight selected row” configurations are working as expected.
  • Select any row in the cell range that was selected for conditional formatting
    • Row highlighting should dynamically change as row selection changes
Row Highlight
Highlight Selected Row

Other posts from blog

Failed to List Resources – Synapse

Error “Failed to list resources” can occur while adding role assignment in Synapse workspace. This error can happen if admin assigning permission is a guest account.

User object id can be used to assign permission instead of AD principal name. This post go through steps to get user profile id as well.

Error: Failed to list resources

This error can occur while trying to add role assignment in synapse workspace.

Failed to list resource
Failed to list resource (Synapse Workspace)

Resolution

Object id can be used to assign permission incase “failed to list resources” error occurs, while assigning permissions using AD principal name.

Retrieve AD user object id using one of the following methods

Method 1

  1. Open Azure CLI
  2. Run following cli command to get object ID
  3. Go to “synapse workspace -> Manage -> Access Control” and use object id to add role assignment
--azure cli command
az ad user show --id user@azurecloud.com

Response

cli command response
Azure CLI

Method 2

  1. In Azure cloud console, go to resource group then “Access control (IAM)”
  2. Open role assignment
  3. Find account that need synapse workspace permissions
  4. Click on user profile to view object id
  5. Go to “synapse workspace -> Manage -> Access Control” and use object id to add role assignment
Access Control
Access Control
User profile
User Profile

Related Links

Synapse Analytics SQL Authentication

This Article will go through steps to enable Synapse Analytics SQL Authentication (local authentication) and create SQL User.

This article will also go through setup to run server less queries on on-demand pool using Synapse Analytics SQL User and Managed Identity.

Error

Following error can occur with Server less Query Execution and SQL Authentication, if permission are not set properly.

Cannot find the CREDENTIAL ‘https://test123.dfs.core.windows.net/devicetelemetry/////*/’, because it does not exist or you do not have permission

MSFT SQL Authorization Documentation Link

Synapse Analytics SQL Authentication Setup

Enable SQL Authentication

  • Log into portal.azure.com
  • Go to Synapse workspace
  • Open Azure Activity Directory from Settings
Azure Active Directory
Azure Active Directory
  • Un-check “Support only Azure Active Directory Authentication for this workspace”
Enable Synapse Analytics SQL Authentication
Azure Active Directory Authentication

Create SQL Login and User

  • Log into SQL on-demand pool using SQL Server Management Studio. Use Admin Credentials for this step, as we will create SQL user in next step.
  • Create new SQL Login “DBUser”. Give this new user access on required data base using following script.
Database Login
Database Login
--use following script to create DB user and give reader permissions
USE database
GO

CREATE USER [DBUser] FOR LOGIN [DBUser] WITH DEFAULT_SCHEMA=[dbo]
GO

ALTER ROLE db_datareader ADD MEMBER [DBUser]
GO

SQL User Permission to Run Server less Query

Use following script to create Database scoped credentials and data source. This data source will be used by SQL user to run server less query. Behind the scene Managed identity is going to be used for storage location access.

Replace database name and Storage location with your required values. Also use admin user to run following scripts.

CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'abcd1234'
GO

CREATE DATABASE SCOPED CREDENTIAL SynapseIdentity
WITH IDENTITY = 'Managed Identity';

GRANT REFERENCES ON DATABASE SCOPED CREDENTIAL::[SynapseIdentity] TO [DBUser];


CREATE EXTERNAL DATA SOURCE mysample
WITH (    LOCATION   = 'https://test.blob.core.windows.net/curatedzone/',
          CREDENTIAL = SynapseIdentity
)

SELECT TOP 10 * FROM OPENROWSET(BULK 'ACCOUNTENTRY/', DATA_SOURCE = 'mysample', FORMAT='DELTA') as rows;

Synapse Analytics SQL Authentication- Test Server Less Query

  • Log into synapse on demand pool with Synapse SQL User
  • Run Server less query using Data Source created in above step. Server less query should execute successfully.
SELECT TOP 10 * 
FROM OPENROWSET(BULK 'ACCOUNTENTRY/', DATA_SOURCE = 'mysample', FORMAT='DELTA') as rows;


Related Article: Disable Public Access on D365 Export to Data Lake

Disable Public Access on D365 Export to Data Lake

By default, the ADLS storage account that is configured for either F&O Export to Data Lake or Synapse Link for Dataverse must have Blob public access Enabled. Following steps can be used to Disable Public Access on D365 Export to Data Lake.

Follow link to see steps to Configure D365 Export to Data Lake

In the meantime, the workaround is to:

1. Provision the ADLS storage account to a different region than the DV/F&O environment. The region must be different because services that are deployed in the same region as the storage account use private Azure IP addresses for communication. You cannot restrict access to Azure services based on their public outbound IP address range.

2. Disable Public Access on D365 Export to Data Lake: Disable blob public access on the ADLS storage account and set option to allow access from selected IP addresses.

3. Run the following script to generate the list of IP addresses of the underlying Power Platform services that require access. These services are all tagged with PowerPlatformInfra.

((Get-AzNetworkServiceTag -location <region of Dynamics environment>).Values | Where-Object {$_.Name -iin "PowerPlatformInfra.<region of Dynamics environment>"}).Properties.AddressPrefixes

4. Build another script to insert the list of allowable IP addresses generated by #3 into the storage account IP address exceptions using the following:

Add-AzStorageAccountNetworkRule -ResourceGroupName <resourcegroupforstorageaccount> -AccountName <storageaccountname> -IPAddressOrRange

More Posts from Blog:

How to Hide Power BI Measure Based on Role: https://simplyfies.com/2022/08/07/hide-power-bi-measure

Cloud SQL Proxy as Windows Task

This post go through steps to run Google Cloud SQL Proxy as Windows Task. Once task is created, it can be triggered to run on windows startup as well.

What is Google Cloud SQL Proxy?

Cloud SQL Auth proxy provides secure access to your instances without a need for Authorized networks or for configuring SSL.

Cloud SQL Auth proxy have the following advantages:

  • Secure connections
  • Easier connection authorization
  • IAM database authentication

Find more information about Cloud SQL Proxy on following Link

https://cloud.google.com/sql/docs/mysql/sql-proxy

Run Cloud SQL Proxy as Windows Task

Step 1 – New Directory

Create Empty Windows Directory (Folder)

C:\CloudProxy\

Step 2 – SQL Proxy Executable

Right-click https://dl.google.com/cloudsql/cloud_sql_proxy_x64.exe and select Save Link As to download the Cloud SQL Auth proxy. Rename the file to cloud_sql_proxy.exe. Place the executable (.exe) file in newly create Folder in Step 1.

Step 3 – .bat File

Paste following command in notepad and save it as a batch file (.bat). Place bat file in Directory created in Step 1

cd C:\CloudProxy\
cloud_sql_proxy -instances=dev-data:us-central1:sql2017=tcp:1425 -credential_file=dev-data-svc.json
Pause

Above command requires instance and credential_file parameters.

Instance: Get Cloud SQL Instance name by going into Google Cloud Console and then into SQL to list all instances. Get Instance Connection Name of the required Instance. Highlighted column in following snapshot contains Instance connection name.

Cloud SQL Instance
SQL Instance Connection Name

Credential_File: This is the credential file name that contains Google Cloud Service account used for Connection.

Follow this link for steps to generate Service Account Json key File. Service account should have “cloudsql.instances.connect” permissions for a successful connection.

Place Json key file in directory created in Step 1

Step 4 – VBScript

Create VBScript file and Place it in directory created in Step 1. VBScript file should have following commands.

Set WshShell = CreateObject("WScript.Shell") 
WshShell.Run chr(34) & "C:\CloudProxy\cloudSQL.bat" & Chr(34), 0
Set WshShell = Nothing

After Step 4 “C:\CloudProxy\” Directory should have following files.

Cloud SQL Proxy Files

Step 5 – Scheduler Task

  • Open Windows Task Scheduler
Task Scheduler

  • Create a new folder

Graphical user interface, application

Description automatically generated

  • Create Basic Task in the new Folder

Graphical user interface

Description automatically generated with low confidence

  • Set Trigger as Highlighted Below

Graphical user interface, application

Description automatically generated

  • Set Action as below

Graphical user interface, text

Description automatically generated

  • Browse to Directory Created in Step 1 and select VBScript File
Action Details

  • Verify Task Details and Finish Setup
Task Summary

New Windows Scheduler Task setup is now completed. This task should start automatically on windows startup.

Note: Account that is running this task should have script execution permissions.

Find below some other useful links
Test sftp connection from windows and linux
Enable Basic Authentication on a Mongo DB

First Time Home Owner

First Time Home Owner Tips
Home Buying

Home buying process can be confusing specially for first time home owner. You can come across a lot of new terminologies during home buying experience. This post contains high level checklist of main steps involved in this process and also summarizing some of the terms and meaning of those for the First Time Home Owner.

Home Buying Check List?

High level list of Activities and Stages of Home Buying Process for First Time Home Owner.

  1. Cleanup Your Credit (Pay Your Bills , Avoid New Accounts and Big Purchase)
  2. Figure Out Your Budget
  3. Narrow Down Area where you want to Buy Property
  4. Save for the Down Payment and Closing Cost
  5. Select Mortgage Provider
  6. Get Pre-Qualified with Lender
  7. Get Pre-Approval with Lender
  8. Work with Property Agent to Select Property
  9. Check School District
  10. Check Property Flood Zone
  11. Identify Area Property Tax, HOA and Any other possible Fees
  12. Negotiate Property price with Sales Agent
  13. Sign Purchase Agreement and Put Down Earnest Money
  14. Apply for a mortgage
  15. Get an Appraisal
  16. Get a Home Inspection (In Case of Pre-Owned Home)
  17. Complete the Title Review
  18. Secure homeowner’s insurance
  19. Complete Paperwork (Mortgage + Title Documents) with Lender
  20. Final walkthrough of Property
  21. Closing

What is Mortgage?

A mortgage is an agreement between you and a lender that allows you to borrow money to purchase or refinance a home and gives the lender the right to take your property if you fail to repay the money you’ve borrowed

What is Home Mortgage or Financing?

A home mortgage is a loan given by a bank, mortgage company or other financial institution for the purchase of a residence—either a primary residence, a secondary residence, or an investment residence—in contrast to a piece of commercial or industrial property. In a home mortgage, the owner of the property (the borrower) transfers the title to the lender on the condition that the title will be transferred back to the owner once the final loan payment has been made and other terms of the mortgage have been met.

Top Conventional Mortgage Provider

Islamic Mortgage Provider (Guidance, UIF, Devon Bank)

What is Pre-Qualification?

Prequalification is an early step in your homebuying journey. When you prequalify for a home loan, you’re getting an estimate of what you might be able to borrow, based on information you provide about your finances, as well as a credit check.

What is Pre-Approval?

A mortgage Pre-Approval is a letter from a lender indicating the type and amount of loan you can qualify for. The preapproval letter is issued after the lender has evaluated your financial history, including pulling your credit report and score. Getting preapproved also helps you find a mortgage lender that can work with you to select a home loan with an interest rate and other terms suited to your needs.

Pre Approval Benefits:

  • Show real estate agents that you’re serious
  • Place strong offers on properties that you’re interested in
  • Show potential sellers that you’re serious and financially eligible

Fixed vs adjustable Payment Type?

Fixed-Rate MortgageAdjustable-Rate Mortgage
Consistent interest rate for the entire loan termLower interest rates at the beginning of the loan
Easy to budget for (monthly payments are always the same)There’s a chance interest rates could decrease later on
Good for long-term homeownersGood for short-term homeowners
No prepayment penalties

What is Earnest Money?

When you find a home and enter into a purchase contract, the seller may withdraw the house from the market. Earnest money or good faith deposit, is a sum of money you put down to demonstrate your seriousness about buying a home.

You deliver the amount when signing the purchase agreement or the sales contract. This Money is going to be counted toward the Down Payment on Closing.

What is Property Appraisal?

Real estate appraisal or property valuation is the process of developing an opinion of value for real property. This is an estimate of price for your property in the current market.

What is Closing?

The final stage in your home buying journey will be to close on your new home and obtain a free and clear title to the property. Obtaining Title Ensures that no other person, organization, or government has any legal or financial claim that would limit ownership rights.

To obtain this title, you pay a title company or title attorney to examine the public record for any outstanding claims against the property and provide title insurance to protect your investor’s interest in the property. The closing itself and signing of paperwork typically takes 1-2 hours.


Other Questions you may be Asked?

You may come across following term during Mortgage stage of home buying process. Mortgage company may ask you following question. Either you falls into these categories or not, it is better to understand what these terms means.

  • Do you have any judgements or liens against you?
  • Have you had any foreclosures in the last 7 years?
  • Have you had any short sales in the last 4 years
  • Have you filed for bankruptcy in the last 7 years?

What is Judgement?

A judgment occurs when the creditor wins their case against you in court. It allows the creditor to pursue ways to recoup the debt you owe e.g. by placing a Lien on your real estate. A judgment could be filed against you in several ways.

  • You fail to show up in court
  • The debt is legally yours

What is Property Lien?

A creditor can place a lien on your real estate holdings. The creditor notifies lenders of the lien. Therefore, if you sell your property or try to transfer the property, you would need to satisfy the debt first. A lien against property can be automatic in New York when a judgment is obtained in the county in which the judgment is recorded.

What is Foreclousure?

Foreclosure is the legal process by which a lender attempts to recover the amount owed on a defaulted loan by taking ownership of the mortgaged property and selling it.

Creditor or Lender?

A creditor or lender is a person or institution to whom money is owed. The first party, in general, has provided some property or service to the second party under the assumption that the second party will return an equivalent property and service.

What is Short Sales?

A short sale occurs when you sell stock you do not own. Investors who sell short believe the price of the stock will fall. If the price drops, you can buy the stock at the lower price and make a profit. If the price of the stock rises and you buy it back later at the higher price, you will incur a loss.

With a fixed-rate mortgage, you get a set interest rate and payment for the entire loan term. Adjustable-rate mortgages, on the other hand, have rates that can change over time.

What is Bankruptcy?

Bankruptcy is a legal proceeding involving a person or business that is unable to repay their outstanding debts. The bankruptcy process begins with a petition filed by the debtor, which is most common, or on behalf of creditors, which is less common. All of the debtor’s assets are measured and evaluated, and the assets may be used to repay a portion of the outstanding debt.