-
Azure SQL provisionig using CLI
The Azure CLI 2.0 is Azure’s new command-line experience for managing Azure resources. You can use it in your browser with Azure Cloud Shell, or you can install it on macOS, Linux, and Windows and run it from the command line.
Learning Azure CLI is pretty simple specially if you are comfort with PowerShell. Following script block shows how to create SQL server with database using Azure CLI
-
Guidance Concerning Petya Ransomware
Would like Share email received from Microsoft today. Hope it will help.
What is the purpose of this alert?
This alert is to provide you with guidance concerning the ransomware issue being discussed broadly in the press starting on Tuesday, June 27, 2017, and causing a large volume of customer inquiries. This ransomware is being described by the press and security researchers as “Petya Ransomware.”
-
PowerShell Desired State Configuration - Part 2
PowerShell Desired State Configuration (DSC)
#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
Please do let me know your thoughts/ suggestions/ question in disqus section.
-
Azure API Versions
Get list of Azure RM API versions
###### 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 } } }
Please do let me know your thoughts/ suggestions/ question in disqus section.
-
VSTS 101
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.
