This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"location": { | |
"type": "String" | |
}, | |
"networkInterfaceName": { | |
"type": "String" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-Location C:\ | |
Clear-Host | |
$AzureRMModule = Find-Module AzureRM | |
$AllAzureRMModules = Find-Module AzureRM* | |
$AzureRMModule | Measure-Object | |
$AllAzureRMModules | Measure-Object | |
$AllAzureRMModules | Where-Object Name -like *Compute* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Start-Transcript | |
Get-ExecutionPolicy | |
Set-ExecutionPolicy RemoteSigned | |
Install-Module azureRM -Force | |
Install-Module azure -AllowClobber | |
get-command -Module | |
(get-command -Module azurerm).count |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Class PatientUtil | |
Public Shared Function FormatAge(ByVal date_age As String) As String | |
Dim date_age_year As String | |
Dim date_age_month As String | |
Dim date_age_delimiter As Char = "."c | |
Dim substrings() As String | |
'First, get it: | |
substrings = date_age.Split(date_age_delimiter) | |
'Second turn decimal (2.40) into readable string (2 years 4 months) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Define Deployment Variables | |
{ | |
$location = 'southcentralus' | |
$resourceGroupName = 'rg874826' | |
$resourceDeploymentName = 'contoso-iaas-deployment' | |
$templatePath = $env:SystemDrive + '\Users\LabUser\Documents\HOL_Lab_Files\3_Deploying_Virtual_Machines' | |
$templateFile = 'contosoIaaS_3.json' | |
$template = $templatePath + '\' + $templateFile | |
$password = "C0nts0sP@55" | |
$securePassword = $password | ConvertTo-SecureString -AsPlainText -Force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Define Deployment Variables | |
{ | |
$resourceGroupName = 'rg553710' | |
$resourceProviderNamespace = 'Microsoft.Network' | |
$resourceTypeName = 'virtualNetworks' | |
$resourceGroupLocation = 'southcentralus' | |
$vNetName = 'vnet-contoso' | |
$vNetAddressPrefix = '172.16.0.0/16' | |
$vNetSubnet1Name = 'subnet-1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Define Deployment Variables | |
{ | |
$resourceGroupName = 'rg553710' | |
$resourceProviderNamespace = 'Microsoft.Web' | |
$resourceTypeName = 'sites' | |
$resourceGroupLocation = 'southcentralus' | |
$randomString = ([char[]]([char]'a'..[char]'z') + 0..9 | Sort-Object {Get-Random})[0..8] -join '' | |
$appNamePrefix = 'contoso' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$stName = "storageVM" | |
$locName = "South Central US" | |
$rgName = "TestRG" | |
New-AzureRmResourceGroup -Name $rgName -Location $locName | |
$storageAcc = New-AzureRmStorageAccount -ResourceGroupName $rgName -Name $stName | |
-Type "Standard_GRS" -Location $locName | |
$singleSubnet = New-AzureRmVirtualNetworkSubnetConfig -Name singleSubnet | |
-AddressPrefix 10.0.0.0/24 | |
$vnet = New-AzureRmVirtualNetwork -Name TestNet -ResourceGroupName $rgName -Location $locName - AddressPrefix 10.0.0.0/16 -Subnet $singleSubnet | |
$pip = New-AzureRmPublicIpAddress -Name TestPIP -ResourceGroupName $rgName -Location $locName - AllocationMethod Dynamic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get-windowsfeature web-server | install-windowsfeature |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Namespace Models | |
Public Class SkeletonOne | |
Public Property Id As String | |
Public Property Abbreviation As String | |
Public Property Date As String | |
End Class | |
Public Class SkeletonTwo | |
Public Property Id As String | |
Public Property Abbreviation As String |
NewerOlder