Skip to content

Commit

Permalink
eden param changes
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamcrowell committed May 2, 2017
1 parent 5eec6a1 commit 1060c5e
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 43 deletions.
1 change: 0 additions & 1 deletion json_deployment_templates/deploy_dsc/make_file.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ Configuration MakeFile {
Ensure = "Present"
Contents = 'Hello World!'
}

}
}
22 changes: 11 additions & 11 deletions json_deployment_templates/deploy_shared/deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ $resource_group_name = "vchds-sp-test-rg"


# Azure login; only need to login once per powershell session
Login-AzureRmAccount
# Login-AzureRmAccount

# # create new resource group
$location = "canadacentral"
New-AzureRmResourceGroup -Name $resource_group_name -Location $location

# deploy resources declared in $template_path
$template_path = "azuredeploy_vnet.json"
$parameter_path = "azuredeploy_vnet.parameters.json"
$deployment_name = "vnetDeployment"
Write-Host ("Testing deployment of template:`n`t{0}" -f $template_path)
Test-AzureRmResourceGroupDeployment -ResourceGroupName $resource_group_name -TemplateFile $template_path -TemplateParameterFile $parameter_path
Write-Host ("Deploying of template:`n`t{0}" -f $template_path)
New-AzureRmResourceGroupDeployment -Name $deployment_name -ResourceGroupName $resource_group_name -TemplateFile $template_path -TemplateParameterFile $parameter_path
# New-AzureRmResourceGroup -Name $resource_group_name -Location $location

# # deploy resources declared in $template_path
# $template_path = "azuredeploy_vnet.json"
# $parameter_path = "azuredeploy_vnet.parameters.json"
# $deployment_name = "vnetDeployment"
# Write-Host ("Testing deployment of template:`n`t{0}" -f $template_path)
# Test-AzureRmResourceGroupDeployment -ResourceGroupName $resource_group_name -TemplateFile $template_path -TemplateParameterFile $parameter_path
# Write-Host ("Deploying of template:`n`t{0}" -f $template_path)
# New-AzureRmResourceGroupDeployment -Name $deployment_name -ResourceGroupName $resource_group_name -TemplateFile $template_path -TemplateParameterFile $parameter_path

# deploy resources declared in $template_path
$template_path = "azuredeploy_storage.json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"contentVersion": "1.0.0.0",
"parameters": {
"virtualNetworkName": {
"value": "vchdsVNET",
"value": "vchds-sp-test-vnet",
"metadata": {
"description": "assumes already exists (eg by azuredeploy_shared.json)"
}
},

"subnetName": {
"value": "spsubnet"
"value": "sp-subnet"
},
"addressStub": {
"value": "10.0.1."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@
"contentVersion": "1.0.0.0",
"parameters": {
"storageAccountName": {
"value": "vchdsstorageaccountwork",
"value": "vchdsspteststorage",
"metadata": {
"description": "assumes already exists (eg by azuredeploy_shared.json)"
}
},
"virtualNetworkName": {
"value": "vchdsVNET",
"value": "vchds-sp-test-vnet",
"metadata": {
"description": "assumes already exists (eg by azuredeploy_shared.json)"
}
},

"subnetName": {
"value": "jsonjoiner",
"value": "sp-subnet",
"metadata": {
"description": "assumes already exists (eg by azuredeploy_subnet.json)"
}
},
"addressStub": {
"value": "10.0.2.",
"value": "10.0.1.",
"metadata": {
"description": "assumes already exists (eg by azuredeploy_subnet.json)"
}
Expand All @@ -43,15 +43,15 @@
"value": {
"publisher": "MicrosoftWindowsServer",
"offer": "WindowsServer",
"sku": "2012-R2-Datacenter",
"sku": "2008-R2-SP1",
"version": "latest"
}
},
"vmCount": {
"value": 3
"value": 4
},
"vmSize": {
"value": "Standard_DS13_v2"
"value": "Standard_DS3_v2"
}
}
}
4 changes: 2 additions & 2 deletions json_deployment_templates/deploy_workload/deploy_subnet.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

# set current working directory
Set-Location -Path $PSScriptRoot
$resource_group_name = "vchdsrgwork"
$resource_group_name = "vchds-sp-test-rg"
$location = "canadacentral"

# Azure login; only need to login once per powershell session
# Login-AzureRmAccount
Login-AzureRmAccount

# deploy resources declared in $template_path
$template_path = "azuredeploy_subnet.json"
Expand Down
5 changes: 1 addition & 4 deletions json_deployment_templates/deploy_workload/deploy_vms.ps1
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# https://github.com/VCHDecisionSupport/azure-quickstart-templates/tree/master/sharepoint-three-vm
# https://github.com/Azure/azure-quickstart-templates/blob/master/201-vm-dynamic-data-disks-selection/azuredeploy.json

# set current working directory
Set-Location -Path $PSScriptRoot
$resource_group_name = "addcquickstart"
$resource_group_name = "vchds-sp-test-rg"
$location = "canadacentral"

# Azure login; only need to login once per powershell session
Expand Down
30 changes: 15 additions & 15 deletions powershell_utils/GetAvailableVmImages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,23 @@ If($IsSignedIn -eq $false)
}


$env:dataCentre = "canadacentral"

$location = "canadacentral"
# VM Sizes
Get-AzureRmVMSize -Location $env:dataCentre | Format-Table
Get-AzureRmVMSize -Location $location | Format-Table

# All Providers
Get-AzureRmResourceProvider -Location $env:dataCentre -ListAvailable
Get-AzureRmResourceProvider -Location $location -ListAvailable

# Microsoft Publishers
(Get-AzureRmVMImagePublisher -Location $env:dataCentre| Where-Object {$_.PublisherName -like '*microsoft*' }).PublisherName
(Get-AzureRmVMImagePublisher -Location $location| Where-Object {$_.PublisherName -like '*microsoft*' }).PublisherName

# Windows Server + R Server images
$publisherName = "MicrosoftRServer"
$offers = (Get-AzureRmVMImageOffer -Location $env:dataCentre -PublisherName $publisherName).Offer
$offers = (Get-AzureRmVMImageOffer -Location $location -PublisherName $publisherName).Offer
$skus = New-Object System.Collections.ArrayList
foreach($offer in $offers)
{
$offerSkus = Get-AzureRmVMImageSku -Location $env:dataCentre -PublisherName $PublisherName -Offer $offer
$offerSkus = Get-AzureRmVMImageSku -Location $location -PublisherName $PublisherName -Offer $offer
foreach($sku in $offerSkus)
{
$i = $skus.Add($sku)
Expand All @@ -43,24 +42,25 @@ $skus | Format-Table

# Windows Server + SQL Server images
$publisherName = "MicrosoftSQLServer"
$offers = (Get-AzureRmVMImageOffer -Location $env:dataCentre -PublisherName $publisherName).Offer
$offers = (Get-AzureRmVMImageOffer -Location $location -PublisherName $publisherName).Offer
$skus = New-Object System.Collections.ArrayList
foreach($offer in $offers)
{
$offerSkus = Get-AzureRmVMImageSku -Location $env:dataCentre -PublisherName $PublisherName -Offer $offer
$offerSkus = Get-AzureRmVMImageSku -Location $location -PublisherName $PublisherName -Offer $offer
foreach($sku in $offerSkus)
{
$i = $skus.Add($sku)
}
}
$skus | Format-Table

# Windows Server images
$publisherName = "MicrosoftWindowsServer"
$offer = "WindowsServer"
Get-AzureRmVMImageSku -Location $location -PublisherName $PublisherName -Offer $offer | Format-Table

# Share Point images
$publisherName = "MicrosoftSharePoint"
$offer = (Get-AzureRmVMImageOffer -Location $env:dataCentre -PublisherName $publisherName).Offer
Get-AzureRmVMImageSku -Location $env:dataCentre -PublisherName $PublisherName -Offer $offer | Format-Table
$offer = (Get-AzureRmVMImageOffer -Location $location -PublisherName $publisherName).Offer
Get-AzureRmVMImageSku -Location $location -PublisherName $PublisherName -Offer $offer | Format-Table

# Windows Server images
$publisherName = "MicrosoftWindowsServer"
$offer = (Get-AzureRmVMImageOffer -Location $env:dataCentre -PublisherName $publisherName).Offer
Get-AzureRmVMImageSku -Location $env:dataCentre -PublisherName $PublisherName -Offer $offer | Format-Table
2 changes: 1 addition & 1 deletion powershell_utils/StopAllVms/Stop-AllVms.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#

Set-Location -Path $PSScriptRoot
# Login-AzureRmAccount
Login-AzureRmAccount

$SkipList = $null, $null
Write-Host ("Geting list of virtual machines in subscription...`n")
Expand Down

0 comments on commit 1060c5e

Please sign in to comment.