Sunday, 16 August 2026

Is Pondicherry, Celebrating Independence Day twice ?

 Is Pondicherry,  Celebrating   Independence Day twice ?




Come on Lets Check!


We all know India celebrates 15th August as Independence day Every year, Pondicherry Celebrated it too.. Then what is it celebrating on 16th of August every year?


Pondicherry is celebrating De Jure Transfer Day  on 16th August every year since 1962.



what is De Jure Transfer Day? 



After achieving independence, the Indian government initiated diplomatic efforts to integrate French-Indian territories. This movement was supported on the ground by the National Youth Congress's Satyagraha campaign, where activists faced severe police retaliation and lathi charges from the French-Indian police.









The defining moment of the movement occurred during the Kizhoor Congress on 18 October 1954. Under the leadership of Assembly President Monsieur Balasubramanian, elected representatives voted via secret ballot on the joint settlement proposals. A decisive majority of 170 to 8 favored the merger.












Consequently, on 1 November 1954, France transferred administration of Pondicherry, Karaikal, Yanam, and Mahe to India. The transition was marked by M.R.K. Nehru hoisting the Indian flag and the formal exchange of signatures between Kewal Singh and Pierre Landy. This day is celebrated as Liberation day.













However The democratic process  went on for few years and concluded on 16 August 1962, when the French Government officially ratified the De Jure transfer.




So Pondicherry is celebrating the transfer of power as De Jure transfer Day on 16th of August every year.


Thursday, 22 December 2022

 வாழ்க்கை முழுவதைம் அள்ளிச்சென்ற  பின், 

 கனவில்  மட்டும்  வந்து 

 ஏன் இன்பம்  காட்டுகிறாய்...

கனவு கலைந்ததும்  உண்மை  வாட்டுகிறது...


கனவாவது  கலையாமல்  இருந்திருக்கலாம்.....

கனவையும் இப்போதெல்லாம் வெறுக்கிறேன்...

கலைந்தது  கனவின்  தவறா?

இல்லை விழித்துழுந்தது  என்  தவறா?


Thursday, 19 August 2021

Find the last logon timestamp of users in Azure AD using PowerShell

Find the last logon timestamp of users in Azure AD using PowerShell



 get-ADUser - filter {enabled -eq $true} -properties LastLogonTimeStamp | Select-object Name,@{Name="Stamp"; Expression={[DateTime] ::FrmFileTime($_.LastLogontimeStamp).Tostring('yyy-mm-dd_hh:mm:ss')}} | Export-csv -Path C:\Users\Ravanan\lastlogon.csv 




PS: check in Dev before running on Prod

Monday, 20 January 2020

ADFS ERROR : ADMIN0017 ADFS ERROR : An error occured during an attempt to access the ADFS Configuration Database:



ADFS ERROR :  ADMIN0017
ADFS ERROR :  An error occured during an attempt to access the ADFS Configuration Database:

ADFS ERROR :  An error occured during an attempt to access the ADFS Configuration Database:
Error Message: ADMIN0017: An Exception Occured while Connecting to the configuration Service. the configuration service URL 'net.tcp://localhost:1500/policy' may be incorrect or the ADFS Windows service is not running.

I came across this error message in my lab set up as today as I was trying to add a new Relying party trust.

IDP page is also not working, there were no options in ADFS Consile in the left hand side.

I just restarted the ADFS service,

 IDP started working and the options to came up.

if this doesnt work, for WID service in services and ADFS service re-enter the password for te service account.

please comment if this helped you as well!


Wednesday, 1 January 2020

Azure AD Connect : PowerShell script to check the AD Connect Password Sync status and send E-mail to Admins


Hello All,

Here is the PowerShell script to send an email to DL about the status of the password sync in a CSV.

Here i have used Get-MsolCompanyInformation.
this gives details like,
last sync time
last password sync time
technical notification email
service account used to perform the sync.

this has to be run on the AD Connect server with elevated rights.
before  running, get-msolcompany information you need to connect to azure.
so open PowerShell with admin rights,
run Connect -msolservice ( in the pop up enter the Global admin credentials)
now run the below script, this store the csv file in the path and also send an email to the address specified.

You can also store the encrypted creds in the script. this is an easy way.

post your suggestions and thoughts in the comments



###########AD CONNECT  PASSWORD SYNC STATUS######## 

$fromaddress = "user@abc.com" 
$toaddress = "adminDL@abc.com" 
 $ADConnect = get-MsolCompanyInformation >\\"path to write the output in csv"\ADC.csv
 $body =   "Please Find the Sync Scheduler info of AD CONNECT attached in the CSV and take actions if necessary. THANK YOU!!" 
 $date = get-date
$Subject = " $date : Pls See the state of AD Connect Sync" 

$attachment = "\\"path of the folder whee teh output csv is located"\Documents\11\ADC.csv" 
$smtpserver = "SMTP.abc.com" 

#################################### 

$message = new-object System.Net.Mail.MailMessage $message.From = $fromaddress
$message.To.Add($toaddress)
###############################################



$message.Subject = $Subject
$attach = new-object Net.Mail.Attachment($attachment)
$message.Attachments.Add($attach)
$message.body = $body 

$smtp = new-object Net.Mail.SmtpClient($smtpserver)
$smtp.Send($message) 

Saturday, 21 December 2019

TWEET without INTERNET. Just send an SMS and see your tweet in your profile.

In India, there is an option to tweet without Internet.


Just  type your tweet in a message and send it to "9248948837" from the mobile number linked with your account.


the mobile number has to be verified.


just send an SMS and start tweeting!!

VERIFICATION OF SUCESSFULL INSTALLATION AND CONFIGURATION OF AD CONNECT

STEP 1 -Verifying in Azure AD Portal:

 Log into Azure AD portal with Global Admin Credentials
 In the home page click Azure Active directory => AD Connect in the left blade
 Check Sync Status and Last sync timings


STEP 2 – checking through PowerShell:

 Log into PowerShell in the AD Connect server with elevated rights,
 Run Get-ADSyncScheduler
 The Value of “SyncCycleEnabled” has to be “True”

SAMPLE:



PS C:\Windows\system32> get-Adsyncscheduler


AllowedSyncCycleInterval            : 00:30:00
CurrentlyEffectiveSyncCycleInterval : 00:30:00
CustomizedSyncCycleInterval         :
NextSyncCyclePolicyType             : Delta
NextSyncCycleStartTimeInUTC         : 12/19/2019 1:00:20 PM
PurgeRunHistoryInterval             : 7.00:00:00
SyncCycleEnabled                    : True
MaintenanceEnabled                  : True
StagingModeEnabled                  : True
SchedulerSuspended                  : False
SyncCycleInProgress                 : False


STEP 3 – checking User profiles:

 Log into Portal.azure.com with GA credentials
 Azure Active Directory => Users
 You should be able to see users with Source as Windows server AD.

run, (Get-ADSyncGlobalSettings).Parameters | Select Name,Value

in powershell with elevated rights. The above command will give you the details of your company`s Ad Connect configurations. It also has AD Connect version.Alternatively you can check from Control panel.





PS C:\Windows\system32> (Get-ADSyncGlobalSettings).Parameters | select Name,Value

Name                                                   Value
----                                                   -----
Microsoft.Synchronize.SynchronizationPolicy            Delta
Microsoft.Synchronize.StagingMode                      True
Microsoft.SynchronizationOption.JoinCriteria           AlwaysProvision
Microsoft.UserSignIn.DesktopSsoEnabled                 False
Microsoft.Synchronize.MaintenanceEnabled               True
Microsoft.OptionalFeature.ExportDeletionThresholdValue 500
Microsoft.Version.SynchronizationRuleImmutableTag      V1
Microsoft.SynchronizationOption.AnchorAttribute        mS-DS-ConsistencyGuid
Microsoft.OptionalFeature.DirectoryExtensionAttributes
Microsoft.OptionalFeature.FilterAAD                    False
Microsoft.GroupWriteBack.Forest
Microsoft.GroupWriteBack.Container
Microsoft.SynchronizationOption.UPNAttribute           userPrincipalName
Microsoft.Synchronize.SchedulerSuspended               False
Microsoft.OptionalFeature.DirectoryExtension           False
Microsoft.SynchronizationOption.CustomAttribute
Microsoft.Synchronize.TimeInterval                     00:30:00
Microsoft.Synchronize.ServerConfigurationVersion       1.4.32.0
Microsoft.SystemInformation.MachineRole                RoleMemberServer
Microsoft.AADFilter.AttributeExclusionList
Microsoft.OptionalFeature.DeviceWriteBack              False
Microsoft.OptionalFeature.AutoUpgradeState             Suspended
Microsoft.Synchronize.NextStartTime                    Thu, 19 Dec 2019 13:00:20 GMT
Microsoft.Synchronize.RunHistoryPurgeInterval          7.00:00:00
Microsoft.OptionalFeature.GroupFiltering               False
Microsoft.ConnectDirectories.WizardDirectoryMode       AD
Microsoft.Synchronize.SynchronizationSchedule          True
Microsoft.OptionalFeature.ExchangeMailPublicFolder     False
Microsoft.OptionalFeature.UserWriteBack                False
Microsoft.OptionalFeature.ExportDeletionThreshold      True
Microsoft.DeviceWriteBack.Forest
Microsoft.OptionalFeature.DeviceWriteUp                True
Microsoft.OptionalFeature.HybridExchange               False
Microsoft.AADFilter.ApplicationList
Microsoft.DirectoryExtension.SourceTargetAttributesMap
Microsoft.UserWriteBack.Forest
Microsoft.DeviceWriteBack.Container
Microsoft.UserWriteBack.Container
Microsoft.UserSignIn.SignOnMethod                      PasswordHashSync
Microsoft.OptionalFeature.GroupWriteBack               False


Connect-msolservice   // connect to Ms online service , use Global Admin  credentials
Get-MsolCompanyInformation


gives info about last sync cycle, password syn enabled or not etc





Friday, 22 February 2019

Auto Cert Rollover in ADFS and setting the new token signing as primary and changing the old one as secondary | Renew federation certificates for Office 365 and Azure Active Directory


Renew federation certificates for Office 365 and Azure Active Directory

Auto Cert Rollover in ADFS and setting the new token signing as primary and changing the old one as secondary 

If you get a token signing certificate when the old certificate is expiring, the new certificate will sitting only as "secondary" until the promotion threshold is met .



you cannot change the cert as Primary. It will be grayed out.



Step 1: Check the AutoCertificateRollover state


get into the Primary ADFS server


run   Get-Adfsproperties in PowerShell with elevated rights.


check if autocertificateRollover is set to "true"





here the threshold is 5 days so the new certificate will become as Primary 5 days before the expiry of the original certificate.

Step 2: Confirm that AD FS and Azure AD are in sync


Install-Module MSOnline
Connect to Azure AD using the MSOnline PowerShell-Module.Import-Module MSOnlineConnect-MsolService
Check the certificates configured in AD FS and Azure AD trust properties for the specified domain.Get-MsolFederationProperty -DomainName <domain.name> | FL Source, TokenSigningCertificate
If the thumbprints in both the outputs match, your certificates are in sync with Azure AD.


if not run Update-MSOLFederatedDomain –DomainName <domain>








Renew the token signing certificate automatically (recommended) 


You don't need to perform any manual steps if both of the following are true:You have deployed Web Application Proxy, which can enable access to the federation metadata from the extranet.You are using the AD FS default configuration (AutoCertificateRollover is enabled).Check the following to confirm that the certificate can be automatically updated.


1. The AD FS property AutoCertificateRollover must be set to True. This indicates that AD FS will automatically generate new token signing and token decryption certificates, before the old ones expire.


2. The AD FS federation metadata is publicly accessible. Check that your federation metadata is publicly accessible by navigating to the following URL from a computer on the public internet (off of the corporate network):https://(your_FS_name)/federationmetadata/2007-06/federationmetadata.xmlwhere (your_FS_name)is replaced with the federation service host name your organization uses, such as fs.contoso.com. If you are able to verify both of these settings successfully, you do not have to do anything else.


Example: https://fs.contoso.com/federationmetadata/2007-06/federationmetadata.xml




REFER:


https://blogs.msdn.microsoft.com/vilath/2015/09/02/how-to-update-certificates-for-ad-fs-3-0/

Thursday, 21 February 2019

How to delete a managed Domain in Azure.

How to delete a managed Domain in Azure.




Some time we might be in a need to delete the managed domain in Azure. Follow the below mentioned steps to delete the managed Domain or custom Domain. However you will not be able to delete the Primary domain (abc.onmicrosoft.com) as it is the name of your directory abc.onmicrosoft.com).


  • Azure Active Directory => Custom Domain names
  • Click on the custom domain name => Click Delete





To delete a custom domain name, you must first ensure that no resources in your directory rely on the domain name.





You can’t delete a domain name from your directory if:


  • ·        Any user has a user name, email address, or proxy address that includes the domain name.
  • ·        Any group has an email address or proxy address that includes the domain name.
  • ·         Any application in your Azure AD has an app ID URI that includes the domain name.

You must change or delete any such resource in your Azure AD directory before you can delete the custom domain name.







Getting error in ADFS proxy 2.0 "Encountered error during federation passive request"

Some customers who are using 2008 server for ADFs proxy may sometime get errors
  "Encountered error during federation passive request"

This usually happens when they change the certificate which is about to expire.

Usually for this kind of issue where the ADFS service and metadata when not accessible extenally we check for certificate bindings

we will be going to PowerShell  with admin rights

run
get-Webapplicationproxysslcertificate
compare the thumbprint with ADFS

but in 2008 R2 we don't have this option to run PS command

so run the ADFS proxy 2.0 wizard that will be fixing the most of the issues.


Friday, 15 February 2019

Azure MFA Unexpected-Failed Result - MFA App Password calls being rejected with bad username/password

My users that use App passwords for the native mail client are not getting mail.



there has been many customers that are saying app passwords are not working with azure.


The back end team has fixed the issue. If you still have problem create a support ticket in Azure portal.


Tuesday, 11 December 2018

how to find the ADFS Service name ADFS 2.0 or 3.0

This small article talks about finding the ADFS Service name

simply open the powershell with elevated rights in the ADFS server

run the command " Get-Adfsproperties"

in the result check for the host name, you can find something like  "adfs.fabrikam.com"


In the GUI mode open the adfs  mmc console and click on ADFS in the left.

So that in the right you can find an option called " Edit Federation Service Properties"

when you click on that you can find the Federation Service name



Wednesday, 28 November 2018

Azure SQL Connectivity and Service Management Errors || Azure Storage Service Down - West US 2 - Applying Mitigation

 Azure SQL Connectivity and Service Management Errors ||

Azure Storage  Service Down - West US 2 - Applying Mitigation

As per the Azure Status site,


Starting at 04:20 UTC on 28 Nov 2018 a subset of customers in West US 2 may experience issues connecting to Storage resources hosted in this region. A subset of customers using resources dependent on Storage may also see impact. Engineers have identified a recent deployment as the potential root-cause and are in the process of applying a fix for this issue. The next update will be provided within 60 minutes, or as events warrant.

REGION AFFECTED:

WEST US 2 



Tuesday, 27 November 2018

Azure MFA failing with Error Message "Sorry, we're having trouble with verifying your account. Please try again" Today 27th November 2018


###Update on 28th November 2018

The Engineering team has fixed the issue and Identified the Preliminary issue.

According to the official Azure Status site the reason was "a DNS issue triggered a large number of sign-in requests to fail, which resulted in backend infrastructure becoming unhealthy. "


MS also told that they have fixed the issue and observed a decrease in the MFA failure count. We are still waiting for the RCA..




==========================================

27th November 2018

Azure MFA is failing again today 27th November 2018 with the Error messageSorry, we're having trouble with verifying your account. Please try again" 

{no Sno SMS sent, no push notification to the app, TOTP code doesn’t work)MS sent, no push notification to the app, TOTP code doesn’t work}

Azure Site says all the regions of America, APAC, and Europe is affected.


Outage details in Azure Site :
Starting at 14:25 UTC on 27 Nov 2018 a subset of customers using Multi-Factor Authentication may experience intermittent issues signing into Azure resources, such as Azure Active Directory, when Multi-Factor Authentication is required by policy. Impacted customers may encounter timeout errors. Engineers are aware of this issue and are actively investigating mitigation options. The next update will be provided in 60 minutes, or as events warrant.






The MS team is working on this.

The regions that are affected are,


Oregon

North Virginia

Dublin

Tokyo

Tokyo
BrazilNorth EuropeSouth East AsiaWest Europe SydneyDallasTXHong KongHong KongSouth Central USEast US2SingaporeNorth Central USFrankfurtNorth CaliforniaChicagoSydneyNorth VirginiaEast JapanSouth India



we are following the MS Internal Sites. An Incident with Priority has been raised and MS team is working on this.

============================================

###Update on 28th November 2018

The Engineering team has fixed the issue and Identified the Preliminary issue.

According to the official Azure Status site the reason was "a DNS issue triggered a large number of sign-in requests to fail, which resulted in backend infrastructure becoming unhealthy. "


MS also told that they have fixed the issue and observed a decrease in the MFA failure count. We are still waiting for the RCA..


Friday, 9 November 2018

Cloud Computing for CCSK certification Cloud certification


                   
CCSK => Certificate of Cloud Security Knowledge

92 of the questions are based on CSA Guide
8 percent is based on ENISA Report

Cloud security fundamentals (How Cloud architecture impacts Security concerns)

Cloud Computing:
According to the National Institute of Standards and Technology, it is a model for enabling convenient, on-demand network access to a shared pool of configurable computing resources (Eg., networks, storage, applications and services) that can be rapidly provisioned and released with minimal management effort and service provider interaction.

Download the PDF 


This is composed of 5 essential characteristics, three service models and four deployment models

Five essential characteristics of Cloud Computing

On demand self-service:

Customer will be able to add or reduce the computing resources based on the requirement without any technical support.

Broad Network access:

It should be available to cx from any place using internet connection, it should be also available to manage from any place without any ‘vpn’ or remote connectivity or any restriction.

Resource pooling:

 In Cloud computing resources will be shared, there are als0 options to restrict it. Resource allocation are all dynamic, when we need more resources it should be dynamically allocated from the pool. these can be allocated from any geographical locations.

Rapid elasticity:

Cloud has the capability to allocate or de-allocate resources dynamically. 

The criteria for scaling up and down can be defined by the customer, dynamic allocation guarantees the performance of the application deployed in the cloud with optimum resources




Download the PDF 


Measured service:

In cloud the customer will be charged based on the usage of the resources.
there will be a mechanism to automatically measure the usage of resources.
billing will be based on the pay per use which benefits the customer.




Three service models in cloud computing:

Infrastructure as a service
Platform as a service
Software as a service













Iaas:

here cx gets only the hardware and gets the freedom to choose the software that he wants.


Paas:

here the hardware and basic software are given
provides the consumers with a stable online environment where they can quickly create , test and deploy web applications using browser based software development tools.
Eg: azue, google apps.



SAAS: 

Provides complete business applications over web.
Eg: gmail, fb, linkedin








Download the PDF 



Four Deployment Models in Cloud:

1.Private cloud
2.Community Cloud
3.Public cloud
4.Hybrid Cloud

Private cloud:

#A Cloud infrastructure operated solely for a single organization
#It can be managed internally or by a third party
#it can be hosted internally or externally
#organization taking responsibility of their data
#organization cn enable pooling and sharing of computing resources across different applications, departments or business units
#Require significant up-front development costs, data centre costs, ongoing maintenance, hardware, software and internal expertise



Community Cloud :

#Community clouds are used by distinct groups ( Or shared communities) of organizations that have shared concerns such as compliance or security considerations.
#The Computing infrastructures may be provided by internal or third party suppliers
#The communities benefit from public cloud capabilities but they also know who their neighbour are so they have fewer fears about security and date protection.

PUBLIC CLOUD:

#the computing resources are shared with the providers other customers
# No awareness of their neighbours

Download the PDF 

HYBRID CLOUD:

#It is a composition of two or more clouds
#Using public clouds for genera comouting while customer data is kept within a private cloud, community cloud or a more traditional IT infrastructure.






Who has control in cloud?
The following chart tells who has control in cloud Computing.




Risks in Cloud as Stated by ENISA:
Loss of Governance
Lock-in
Isolation Failure
Compliance risks
Management interface compromise
Data Protection
Insecure or incomplete data deletion
Malicious insider

Download the PDF 

iSEC Realistic Cloud Threats:
Authentication Abuse
Operations Breakdown
Misuse of Cloud-specific Technology
General Security Advantages:
Shifting public data to an external cloud reduces the exposure of the internal sensitive data
Cloud homogeneity makes security auditing/ testing simpler
Clouds enable automated security management
Redundancy/ Disaster recovery
General Security Challenges:

Trusting the vendor`s security Model
Customer`s inability to respond to audit findings
Obtaining support for investigations
Indirect administrator accountability
Proprietary implementations cat be examined
Loss of physical control


Data Storage Services:
Advantages are,
Data fragmentation and dispersal
Automated replication
Provision of data zones (eg. By country)
Encryption at rest and in transit
Automated data retention

Disadvantages or undesired features are,
Isolation management/ data multi-tenancy
Storage controller
Exposure of data to foreign governments



Download the PDF 


Is Pondicherry, Celebrating Independence Day twice ?

 Is Pondicherry,  Celebrating   Independence Day twice ? Come on Lets Check! We all know India celebrates 15th August as Independence day Ev...