Friday, May 22, 2020

Azure Bastion

Organizations always have issues and concerns that how to remove the risk of threats and malware attacks when users connect to VMs (using RDP or SSH) inside the network.
Azure Bastion not only helps you to address these issues, but also reduce the lot of management overhead. #azure #attacks #publiccloud #security #azurecertification #azure365 #ajeetchouksey







Monday, June 19, 2017

Sunday, March 5, 2017

Add-AzureRmAccount : The browser based authentication dialog failed to complete. Reason: The server or proxy was not found.

Add-AzureRmAccount : The browser based authentication dialog failed to complete.
Reason: The server or proxy was not found.
At C:\Users\ajeet.kumar.chouksey\Source\Workspaces\MyProject\Deploy.ps1:202 char:13
+             Add-AzureRmAccount
+             ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Add-AzureRmAccount], AadAuthenticati
   onFailedException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.AddAzureRMAccountCom
   mand



I am facing this issue since last couple of days and I found that this issue due to IE is not set as default browser. I change default browser from Chrome to IE, things start working as expected.

Wednesday, February 15, 2017

Get List of Latest API version for ARM resources

# Resource API version play an important role in ARM template. Below script help to get list of available API versions for various providers. if you remove if statement, script will list the API versions for all the provider.

$listProviderNameSpace=Get-AzureRmResourceProvider -ListAvailable
foreach($provideNameSpace in $listProviderNameSpace.ProviderNamespace)
{
   
    if(($provideNameSpace -eq "microsoft.compute") -or($provideNameSpace -eq "microsoft.storage") -or ($provideNameSpace -eq "microsoft.network"))
    {
       Write-Host $provideNameSpace
       $providerList = (Get-AzureRmResourceProvider -ProviderNamespace $provideNameSpace).ResourceTypes
       foreach($providerType in $providerList.ResourceTypeName)
       {     
            Write-Host $providerType
         ((Get-AzureRmResourceProvider -ProviderNamespace $provideNameSpace).ResourceTypes | Where-Object ResourceTypeName -eq $providerType).ApiVersions

         }
   }
}




Friday, August 26, 2016

DSC PowerShell - Let's start

    #---------DSC Basic PowerShell---------#

   #GET DSC Modules
   Get-DSCResource




   #Get Windows Feature
   Get-WindowsFeature




   #Find Module Over Internet
   Find-Module -name *mva*
  

   #Find and Install Module
   Find-Module -name *mva* | Install-Module
   

   #Get DSC Status
   Get-DscConfigurationStatus




   #GET DSC Local Configuration Manager
   Get-DSCLocalConfigurationManager



  #---------DSC Configuration to Update LCM properties---------#

  #DSC Configuration
  [DSCResource()]
  Configuration LCMSetUp
  {
      param()
        LocalConfigurationManager
        {        
           ActionAfterReboot = 'ContinueConfiguration'
           RebootNodeIfNeeded = $True
           ConfigurationMode = 'ApplyAndAutoCorrect'
           ConfigurationModeFrequencyMins = 240
           RefreshMode = 'PUSH'
        }   
  }

  #Generate MOF File
  LCMSetUp -Outputpath "c:\DSC\LCMSetUp"

  #Update LCM Properties
  Set-DscLocalConfigurationManager -path "c:\DSC\LCMSetUp"  -force -verbose

  #GET DSC Local Configuration Manager
  Get-DSCLocalConfigurationManager 




#---------DSC Configuration to Install Windows Feature---------#


  #DSC Configuration
  [DSCResource()]
  Configuration WindowFeatureInstall
  {
      param()

      Node localhost
      {
          WindowsFeature IISInstall
          {
               Name="Web-Server"
               Ensure="Present"
              IncludeAllSubfeature = $true
          }
        WindowsFeature SMTP
         {
            Name = "SMTP-Server"          
            Ensure = "Present"
            IncludeAllSubFeature = $true
            DependsOn = "[WindowsFeature]IISInstall"
         }
         LocalConfigurationManager
         {        
           ActionAfterReboot = 'ContinueConfiguration'
           RebootNodeIfNeeded = $True
         }
       }
  }

   #Generate MOF File
   WindowFeatureInstall -Outputpath "c:\DSC\WFInstall"

   #Intall Configuration
   Start-DSCConfiguration -path "c:\DSC\WFInstall" -ComputerName localhost -force -verbose -wait




Tuesday, August 16, 2016

How to import data into Excel from VSTS

Go To Team tab and select New List


Connect to your VSTS Server, Select Project and Query




Data will be imported into Excel based on query


VSTS 101

Visual Studio Online or Visual Studio Team Service (VSTS) is now known as Team Service is SaaS version of Team Foundation Server. More or less it's provide all the functionality which is available in TFS with some additional functionality which support Cloud based deployment.

Features I like most are
• its cross platform and support Cloud as well on-premises deployment.
• It’s a single platform where you can manage projects, teams, build, testing, release and most important reporting capabilities which give you live status so you can act upon.
• You can integrate various automation testing tools either using REST API's or it’s also provide easy integration.
• You can add template based task to your build and release definitions and if it’s not there then you can add them through marketplace.
• It support load testing across the geographies.
• As its SaaS based service you need not to bother about its availability and time to time upgrade.
• App Insight can be easily integrated with Team Services

Limitations
• Like TFS it cannot be integrated with the SharePoint.
• No SSRS like TFS. Team Services come with basic reporting capabilities. If you need rich reporting you can integrate with Power BI.

Project Management
 Project Manager can easily create/ manage the plan and keep track of current/overall status (live).
PM can easily integrate VSTS with MS Project and Excel as well.

Process
• Agile: Choose Agile when your team uses Agile planning methods, including Scrum, and track development and test activities separately.
• CMMI: Choose CMMI when your team follows more formal project methods that require a framework for process improvement.
• Scrum: Choose Scrum when your team practices Scrum. This process works great if you want to track product backlog items (PBIs) and bugs on the Kanban board, or break PBIs and bugs down into tasks on the task board.

Build/ Build Triggers
• Continuous integration (CI): Select this trigger if you want the build to run whenever someone checks in code.
• Scheduled: Select the days and times when you want to run the build.
• TFVC gated check-in: If your code is in a Team Foundation version control repository, use gated check-in to protect against breaking changes.

Testing Features/ Support in VSTS
• Load testing – on premises, in the cloud
• Continuous testing in DevOps
• Manual testing
• Exploratory testing
• User acceptance testing
• Unit testing and IDE

Team Service pricing
By default there is no charges for MSDN users along with 5 free non MSDN users. If there is more than 5 non MSDN users you need to pay the price based on the number of users.