-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add virtual network & vm upgrade test
- Loading branch information
1 parent
692d95a
commit 275dee3
Showing
4 changed files
with
508 additions
and
0 deletions.
There are no files selected for viewing
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
59 changes: 59 additions & 0 deletions
59
provider/pkg/provider/test-programs/upgrade-networked-vm/Pulumi.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: upgrade-networked-vm | ||
runtime: yaml | ||
description: Upgrade test for VirtualNetwork and VirtualMachine | ||
resources: | ||
rg: | ||
type: azure-native:resources:ResourceGroup | ||
|
||
vnet: | ||
type: azure-native:network:VirtualNetwork | ||
properties: | ||
resourceGroupName: ${rg.name} | ||
addressSpace: | ||
addressPrefixes: ["10.1.0.0/16"] | ||
|
||
subnet: | ||
type: azure-native:network:Subnet | ||
properties: | ||
resourceGroupName: ${rg.name} | ||
virtualNetworkName: ${vnet.name} | ||
addressPrefix: "10.1.0.0/24" | ||
|
||
networkInterface: | ||
type: azure-native:network:NetworkInterface | ||
properties: | ||
resourceGroupName: ${rg.name} | ||
ipConfigurations: | ||
- name: ipconfig1 | ||
subnet: | ||
id: ${subnet.id} | ||
privateIPAllocationMethod: Dynamic | ||
|
||
publicIp: | ||
type: azure-native:network:PublicIPAddress | ||
properties: | ||
resourceGroupName: ${rg.name} | ||
sku: | ||
name: basic | ||
publicIPAddressVersion: IPv4 | ||
publicIPAllocationMethod: Dynamic | ||
|
||
vm: | ||
type: azure-native:compute:VirtualMachine | ||
properties: | ||
resourceGroupName: ${rg.name} | ||
hardwareProfile: | ||
vmSize: Standard_A0 | ||
networkProfile: | ||
networkInterfaces: | ||
- id: ${networkInterface.id} | ||
storageProfile: | ||
imageReference: | ||
publisher: "Canonical" | ||
offer: "UbuntuServer" | ||
sku: "18.04-LTS" | ||
version: "latest" | ||
osProfile: | ||
computerName: "mycomputer" | ||
adminUsername: "someusername" | ||
adminPassword: "someFancyp@wd2!" |
Oops, something went wrong.