Badgerati / Fogg

PowerShell tool to aide and simplify the creation, deployment and provisioning of infrastructure in Azure
MIT License
7 stars 2 forks source link

When finished, Fogg should return an object with information of what was just deployed #49

Closed Badgerati closed 7 years ago

Badgerati commented 7 years ago

Right now when Fogg finishes deploying your IaaS, the only "output" you get is a quick list of the Public IP Addresses for each VM that you may have deployed.

Fogg needs to return a more detailed object containing basic information of what was just deployed for each VM/VPN in the template. Things like:

An example could be:

$ex = @{
    'Error' = @{
        'Code' = 0;
        'Reason' = '';
    };
    'ResourceGroup' = @{
        'Name' = 'example-rg';
    };
    'VirtualNetwork' = @{
        'Name' = 'example-vnet';
        'AddressPrefix' = '10.1.0.0/16';
    };
    'StorageAccount' = @{
        'Name' = 'examplestdsa'
    };
    'VirtualMachineInfo' = @{
        'web' = @{
            'Subnet' = '10.1.0.0/24';
            'AvailabilitySet' = 'example-web-as';
            'LoadBalancer' = @{
                'Name' = 'example-web-lb';
                'PublicIP' = '52.101.205.32';
                'Port' = 443;
            };
            'VirtualMachines' = @(
                @{
                    'Name' = 'example-web1';
                    'State' = 'On';
                    'PrivateIP' = '10.1.0.1';
                    'PublicIP' = '52.139.128.96';
                };
                @{
                    'Name' = 'example-web2';
                    'State' = 'On';
                    'PrivateIP' = '10.1.0.2';
                    'PublicIP' = '52.112.134.97';
                };
            );
        };
    };
}
Badgerati commented 7 years ago

I've added in a new "-NoOutput" argument to Fogg, which when passed will not return this resultant object.

Badgerati commented 7 years ago

The Error and State values above have been removed