diff --git a/experiments/Compute.Experiments/AzureRM.Compute.Experiments-help.xml b/experiments/Compute.Experiments/AzureRM.Compute.Experiments-help.xml new file mode 100644 index 000000000000..058e230cbb7e --- /dev/null +++ b/experiments/Compute.Experiments/AzureRM.Compute.Experiments-help.xml @@ -0,0 +1,385 @@ + + + + +New-AzVm +New +AzVm +Creates a virtual machine and all required resources. + + + +The cmdlet creates a virtual machine and all required resources in Azure. + + +New-AzVm +Name +A name of a virtual machine. + + +String +String + +None + +Credential +Specifies the user name and password for the virtual machine as a PSCredential object. + + +PSCredential +PSCredential + +None + +ImageName +A name of virtual machine image. + + +String +String + +None + +ResourceGroupName +Specifies the name of a resource group. + + +String +String + +None + +Location +Specifies a location for the virtual machine. + + +String +String + +None + +VirtualNetworkName +Specifies a Virtual Network name. + + +String +String + +None + +PublicIpAddressName +Specifies a name of PublicIPAddress object to assign to a network interface. + + +String +String + +None + +SecurityGroupName +Specifies a Network Security Group name. + + +String +String + +None + +AddressPrefix +Specifies a range of IP addresses for a virtual network. + + +String +String + +None + +AllocationMethod +Specifies the method with which to allocate the public IP address. The acceptable values for this parameter are: Static or Dynamic. + + +String +String + +None + +AsJob +Specifies the cmdlet executes as a job. + + +SwitchParameter + +False + +AzureRmContext +Azure context. + + +Object +Object + +None + +DomainNameLabel +Specifies the relative DNS name for a public IP address. + + +String +String + +None + +OpenPorts +Ports. + + +Int32[] +Int32[] + +None + +Size +Specifies the size for the virtual machine. + + +String +String + +None + +SubnetAddressPrefix +Specifies a range of IP addresses for a subnet configuration. + + +String +String + +None + +SubnetName +Specifies the name of the subnet configuration to create. + + +String +String + +None + +Confirm +Prompts you for confirmation before running the cmdlet. + + +SwitchParameter + +False + +WhatIf +Shows what would happen if the cmdlet runs. The cmdlet is not run. + + +SwitchParameter + +False + + + +AddressPrefix +Specifies a range of IP addresses for a virtual network. + + +String +String + +None + +AllocationMethod +Specifies the method with which to allocate the public IP address. The acceptable values for this parameter are: Static or Dynamic. + + +String +String + +None + +AsJob +Specifies the cmdlet executes as a job. + + +SwitchParameter +SwitchParameter + +False + +AzureRmContext +Azure context. + + +Object +Object + +None + +Credential +Specifies the user name and password for the virtual machine as a PSCredential object. + + +PSCredential +PSCredential + +None + +DomainNameLabel +Specifies the relative DNS name for a public IP address. + + +String +String + +None + +ImageName +A name of virtual machine image. + + +String +String + +None + +Location +Specifies a location for the virtual machine. + + +String +String + +None + +Name +A name of a virtual machine. + + +String +String + +None + +OpenPorts +Ports. + + +Int32[] +Int32[] + +None + +PublicIpAddressName +Specifies a name of PublicIPAddress object to assign to a network interface. + + +String +String + +None + +ResourceGroupName +Specifies the name of a resource group. + + +String +String + +None + +SecurityGroupName +Specifies a Network Security Group name. + + +String +String + +None + +Size +Specifies the size for the virtual machine. + + +String +String + +None + +SubnetAddressPrefix +Specifies a range of IP addresses for a subnet configuration. + + +String +String + +None + +SubnetName +Specifies the name of the subnet configuration to create. + + +String +String + +None + +VirtualNetworkName +Specifies a Virtual Network name. + + +String +String + +None + +Confirm +Prompts you for confirmation before running the cmdlet. + + +SwitchParameter +SwitchParameter + +False + +WhatIf +Shows what would happen if the cmdlet runs. The cmdlet is not run. + + +SwitchParameter +SwitchParameter + +False + + +None + + + + + + +System.Object + + + + + + + + + + +Example 1 +PS C:\> New-AzVm -Name MyCoolVM +Creates a virtual machine with name `MyCoolVM`. + + + + + + + diff --git a/experiments/Compute.Experiments/AzureRM.Compute.Experiments.psd1 b/experiments/Compute.Experiments/AzureRM.Compute.Experiments.psd1 index 10881a43238b..568710be7d55 100644 --- a/experiments/Compute.Experiments/AzureRM.Compute.Experiments.psd1 +++ b/experiments/Compute.Experiments/AzureRM.Compute.Experiments.psd1 @@ -1,126 +1,126 @@ -# -# Module manifest for module 'AzureRM.Compute.Experiments' -# -# Generated by: Microsoft -# -# Generated on: 9/1/2017 -# - -@{ - -# Script module or binary module file associated with this manifest. -RootModule = ".\AzureRM.Compute.Experiments.psm1" - -# Version number of this module. -ModuleVersion = '1.0.19' - -# Supported PSEditions -# CompatiblePSEditions = @() - -# ID used to uniquely identify this module -GUID = 'b5a94030-df85-43fa-b581-54069f88428f' - -# Author of this module -Author = 'Microsoft' - -# Company or vendor of this module -CompanyName = 'Microsoft' - -# Copyright statement for this module -Copyright = 'Microsoft' - -# Description of the functionality provided by this module -Description = 'Azure Compute experiments for VM creation' - -# Minimum version of the Windows PowerShell engine required by this module -PowerShellVersion = '5.0' - -# Name of the Windows PowerShell host required by this module -# PowerShellHostName = '' - -# Minimum version of the Windows PowerShell host required by this module -# PowerShellHostVersion = '' - -# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -# DotNetFrameworkVersion = '' - -# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -# CLRVersion = '' - -# Processor architecture (None, X86, Amd64) required by this module -# ProcessorArchitecture = '' - -# Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( - @{ ModuleName = "AzureRM.Resources"; ModuleVersion = "4.3.2"; }, - @{ ModuleName = "AzureRM.Network"; ModuleVersion = "4.3.2"; }, - @{ ModuleName = "AzureRM.Compute"; ModuleVersion = "3.3.2"; } -) - -# Assemblies that must be loaded prior to importing this module -# RequiredAssemblies = @() - -# Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() - -# Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() - -# Format files (.ps1xml) to be loaded when importing this module -# FormatsToProcess = @() - -# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess -# NestedModules = @() - -# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. -FunctionsToExport = 'New-AzVm' - -# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. -# CmdletsToExport = - -# Variables to export from this module -VariablesToExport = '*' - -# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. -AliasesToExport = @() - -# DSC resources to export from this module -# DscResourcesToExport = @() - -# List of all modules packaged with this module -# ModuleList = @() - -# List of all files packaged with this module -# FileList = @() - -# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. -PrivateData = @{ - - PSData = @{ - - # Tags applied to this module. These help with module discovery in online galleries. - # Tags = @() - - # A URL to the license for this module. - # LicenseUri = '' - - # A URL to the main website for this project. - # ProjectUri = '' - - # A URL to an icon representing this module. - # IconUri = '' - - # ReleaseNotes of this module - # ReleaseNotes = '' - - } # End of PSData hashtable - -} # End of PrivateData hashtable - -# HelpInfo URI of this module -# HelpInfoURI = '' - -# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. -# DefaultCommandPrefix = '' - -} +# +# Module manifest for module 'AzureRM.Compute.Experiments' +# +# Generated by: Microsoft +# +# Generated on: 9/1/2017 +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = ".\AzureRM.Compute.Experiments.psm1" + +# Version number of this module. +ModuleVersion = '1.0.20' + +# Supported PSEditions +# CompatiblePSEditions = @() + +# ID used to uniquely identify this module +GUID = 'b5a94030-df85-43fa-b581-54069f88428f' + +# Author of this module +Author = 'Microsoft' + +# Company or vendor of this module +CompanyName = 'Microsoft' + +# Copyright statement for this module +Copyright = 'Microsoft' + +# Description of the functionality provided by this module +Description = 'Azure Compute experiments for VM creation' + +# Minimum version of the Windows PowerShell engine required by this module +PowerShellVersion = '5.0' + +# Name of the Windows PowerShell host required by this module +# PowerShellHostName = '' + +# Minimum version of the Windows PowerShell host required by this module +# PowerShellHostVersion = '' + +# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +# DotNetFrameworkVersion = '' + +# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +# CLRVersion = '' + +# Processor architecture (None, X86, Amd64) required by this module +# ProcessorArchitecture = '' + +# Modules that must be imported into the global environment prior to importing this module +RequiredModules = @( + @{ ModuleName = "AzureRM.Resources"; ModuleVersion = "4.3.2"; }, + @{ ModuleName = "AzureRM.Network"; ModuleVersion = "4.3.2"; }, + @{ ModuleName = "AzureRM.Compute"; ModuleVersion = "3.3.2"; } +) + +# Assemblies that must be loaded prior to importing this module +# RequiredAssemblies = @() + +# Script files (.ps1) that are run in the caller's environment prior to importing this module. +# ScriptsToProcess = @() + +# Type files (.ps1xml) to be loaded when importing this module +# TypesToProcess = @() + +# Format files (.ps1xml) to be loaded when importing this module +# FormatsToProcess = @() + +# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess +# NestedModules = @() + +# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. +FunctionsToExport = 'New-AzVm' + +# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. +# CmdletsToExport = + +# Variables to export from this module +VariablesToExport = '*' + +# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. +AliasesToExport = @() + +# DSC resources to export from this module +# DscResourcesToExport = @() + +# List of all modules packaged with this module +# ModuleList = @() + +# List of all files packaged with this module +# FileList = @() + +# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. +PrivateData = @{ + + PSData = @{ + + # Tags applied to this module. These help with module discovery in online galleries. + # Tags = @() + + # A URL to the license for this module. + # LicenseUri = '' + + # A URL to the main website for this project. + # ProjectUri = '' + + # A URL to an icon representing this module. + # IconUri = '' + + # ReleaseNotes of this module + # ReleaseNotes = '' + + } # End of PSData hashtable + +} # End of PrivateData hashtable + +# HelpInfo URI of this module +# HelpInfoURI = '' + +# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. +# DefaultCommandPrefix = '' + +} diff --git a/experiments/Compute.Experiments/AzureRM.Compute.Experiments.psm1 b/experiments/Compute.Experiments/AzureRM.Compute.Experiments.psm1 index b82bfef37acf..cc18a5b8b65c 100644 --- a/experiments/Compute.Experiments/AzureRM.Compute.Experiments.psm1 +++ b/experiments/Compute.Experiments/AzureRM.Compute.Experiments.psm1 @@ -89,7 +89,9 @@ function New-AzVm { [hashtable] $params = $args[0] New-AzVm @params } - return Start-Job $script -ArgumentList $arguments + + $jobName = "Creating VM $Name" + return Start-Job -Name $jobName -ScriptBlock $script -ArgumentList $arguments } else { # Force to create Resource Group before anything else. $rg = $rgi.GetOrCreate($createParams) diff --git a/experiments/Compute.Experiments/help/AzureRM.Compute.Experiments.md b/experiments/Compute.Experiments/help/AzureRM.Compute.Experiments.md index 7cf6d49ac3ef..c1a421dc17b2 100644 --- a/experiments/Compute.Experiments/help/AzureRM.Compute.Experiments.md +++ b/experiments/Compute.Experiments/help/AzureRM.Compute.Experiments.md @@ -1,14 +1,14 @@ --- Module Name: AzureRM.Compute.Experiments -Module Guid: {{ Update Module Guid }} -Download Help Link: {{ Update Download Link }} -Help Version: {{ Update Help Version }} -Locale: {{ Update Locale }} +Module Guid: b5a94030-df85-43fa-b581-54069f88428f +Download Help Link: +Help Version: +Locale: --- # AzureRM.Compute.Experiments Module ## Description -{{Manually Enter Description Here}} +Cmdlets experiments for user interface improvements in Virtual Machine creation. ## AzureRM.Compute.Experiments Cmdlets ### [New-AzVm](New-AzVm.md)