-
Notifications
You must be signed in to change notification settings - Fork 437
[Modules] Added multiple vm deployment example #1369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d551e07
Added draft for VM construct
AlexanderSehr 3b07b6d
Added output
AlexanderSehr 2dc0ea7
Added readme and param files
AlexanderSehr e3baee6
Applied feedback
AlexanderSehr 3fc8a63
Applied feedback
AlexanderSehr b9b5c51
Update constructs/Microsoft.Compute/virtualMachinesMultiple/.paramete…
AlexanderSehr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
67 changes: 67 additions & 0 deletions
67
constructs/Microsoft.Compute/virtualMachinesMultiple/.parameters/linux.prefix.parameter.json
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| { | ||
| "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", | ||
| "contentVersion": "1.0.0.0", | ||
| "parameters": { | ||
| "vmInitialNumber": { | ||
| "value": 1 | ||
| }, | ||
| "vmNamePrefix": { | ||
| "value": "<<namePrefix>>-vm-linux-prefix" | ||
| }, | ||
| "vmNumberOfInstances": { | ||
| "value": 3 | ||
| }, | ||
| "osType": { | ||
| "value": "Linux" | ||
| }, | ||
| "imageReference": { | ||
| "value": { | ||
| "publisher": "Canonical", | ||
| "offer": "UbuntuServer", | ||
| "sku": "18.04-LTS", | ||
| "version": "latest" | ||
| } | ||
| }, | ||
| "osDisk": { | ||
| "value": { | ||
| "diskSizeGB": "128", | ||
| "managedDisk": { | ||
| "storageAccountType": "Premium_LRS" | ||
| } | ||
| } | ||
| }, | ||
| "vmSize": { | ||
| "value": "Standard_B12ms" | ||
| }, | ||
| "adminUsername": { | ||
| "value": "localAdminUser" | ||
| }, | ||
| "disablePasswordAuthentication": { | ||
| "value": true | ||
| }, | ||
| "publicKeys": { | ||
| "value": [ | ||
| { | ||
| "path": "/home/localAdminUser/.ssh/authorized_keys", | ||
| "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDdOir5eO28EBwxU0Dyra7g9h0HUXDyMNFp2z8PhaTUQgHjrimkMxjYRwEOG/lxnYL7+TqZk+HcPTfbZOunHBw0Wx2CITzILt6531vmIYZGfq5YyYXbxZa5MON7L/PVivoRlPj5Z/t4RhqMhyfR7EPcZ516LJ8lXPTo8dE/bkOCS+kFBEYHvPEEKAyLs19sRcK37SeHjpX04zdg62nqtuRr00Tp7oeiTXA1xn5K5mxeAswotmd8CU0lWUcJuPBWQedo649b+L2cm52kTncOBI6YChAeyEc1PDF0Tn9FmpdOWKtI9efh+S3f8qkcVEtSTXoTeroBd31nzjAunMrZeM8Ut6dre+XeQQIjT7I8oEm+ZkIuIyq0x2fls8JXP2YJDWDqu8v1+yLGTQ3Z9XVt2lMti/7bIgYxS0JvwOr5n5L4IzKvhb4fm13LLDGFa3o7Nsfe3fPb882APE0bLFCmfyIeiPh7go70WqZHakpgIr6LCWTyePez9CsI/rfWDb6eAM8= generated-by-azure" | ||
| } | ||
| ] | ||
| }, | ||
| "nicConfigurations": { | ||
| "value": [ | ||
| { | ||
| "nicSuffix": "-nic-01", | ||
| "ipConfigurations": [ | ||
| { | ||
| "name": "ipconfig01", | ||
| "subnetId": "/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<<namePrefix>>-az-vnet-x-001/subnets/<<namePrefix>>-az-subnet-x-001", | ||
| "pipConfiguration": { | ||
| "publicIpNameSuffix": "-pip-01" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } |
65 changes: 65 additions & 0 deletions
65
...tructs/Microsoft.Compute/virtualMachinesMultiple/.parameters/linux.vmnames.parameter.json
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| { | ||
| "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", | ||
| "contentVersion": "1.0.0.0", | ||
| "parameters": { | ||
| "vmNames": { | ||
| "value": [ | ||
| "<<namePrefix>>-vm-linux-vmnames-01", | ||
| "<<namePrefix>>-vm-linux-vmnames-02", | ||
| "<<namePrefix>>-vm-linux-vmnames-03" | ||
| ] | ||
| }, | ||
| "osType": { | ||
| "value": "Linux" | ||
| }, | ||
| "imageReference": { | ||
| "value": { | ||
| "publisher": "Canonical", | ||
| "offer": "UbuntuServer", | ||
| "sku": "18.04-LTS", | ||
| "version": "latest" | ||
| } | ||
| }, | ||
| "osDisk": { | ||
| "value": { | ||
| "diskSizeGB": "128", | ||
| "managedDisk": { | ||
| "storageAccountType": "Premium_LRS" | ||
| } | ||
| } | ||
| }, | ||
| "vmSize": { | ||
| "value": "Standard_B12ms" | ||
| }, | ||
| "adminUsername": { | ||
| "value": "localAdminUser" | ||
| }, | ||
| "disablePasswordAuthentication": { | ||
| "value": true | ||
| }, | ||
| "publicKeys": { | ||
| "value": [ | ||
| { | ||
| "path": "/home/localAdminUser/.ssh/authorized_keys", | ||
| "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDdOir5eO28EBwxU0Dyra7g9h0HUXDyMNFp2z8PhaTUQgHjrimkMxjYRwEOG/lxnYL7+TqZk+HcPTfbZOunHBw0Wx2CITzILt6531vmIYZGfq5YyYXbxZa5MON7L/PVivoRlPj5Z/t4RhqMhyfR7EPcZ516LJ8lXPTo8dE/bkOCS+kFBEYHvPEEKAyLs19sRcK37SeHjpX04zdg62nqtuRr00Tp7oeiTXA1xn5K5mxeAswotmd8CU0lWUcJuPBWQedo649b+L2cm52kTncOBI6YChAeyEc1PDF0Tn9FmpdOWKtI9efh+S3f8qkcVEtSTXoTeroBd31nzjAunMrZeM8Ut6dre+XeQQIjT7I8oEm+ZkIuIyq0x2fls8JXP2YJDWDqu8v1+yLGTQ3Z9XVt2lMti/7bIgYxS0JvwOr5n5L4IzKvhb4fm13LLDGFa3o7Nsfe3fPb882APE0bLFCmfyIeiPh7go70WqZHakpgIr6LCWTyePez9CsI/rfWDb6eAM8= generated-by-azure" | ||
| } | ||
| ] | ||
| }, | ||
| "nicConfigurations": { | ||
| "value": [ | ||
| { | ||
| "nicSuffix": "-nic-01", | ||
| "ipConfigurations": [ | ||
| { | ||
| "name": "ipconfig01", | ||
| "subnetId": "/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<<namePrefix>>-az-vnet-x-001/subnets/<<namePrefix>>-az-subnet-x-001", | ||
| "pipConfiguration": { | ||
| "publicIpNameSuffix": "-pip-01" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.