This command replaces Get-CaasDeployedServer and works with both MCP 1.0 and 2.0 data centers.

The response for this command is different to the Get-CaasDeployedServer because it includes fields unique to MCP 2 data centers.

  • the networkId field is now within the nic field
  • public IPs are no longer included in the response
  • location is now datacenterId
  • isDeployed is now deployed
  • isStarted is now started
  • servers on MCP 2 have a networkInfo field with a complex type for NICs and VLAN association
  • machineName is no longer available

Synopsis

Get a list of servers deployed in a datacenter(s)

Syntax

Get-CaasServers [[-Name] <String>] [-ServerId <String>] [-Network <NetworkWithLocationsNetwork>] [-NetworkDomain <NetworkDomainType>] [-NetworkDomainId <String>] [-Vlan <VlanType>] [-VlanId <String>] [-Location <String>] [-Connection <ComputeServiceConnection>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [<CommonParameters>]

Description

Parameters

-Name <String>

Required?False
Position?0
Default value 
Accept pipeline input?false
Accept wildcard characters?False

-ServerId <String>

Required?False
Position?named
Default value 
Accept pipeline input?false
Accept wildcard characters?False

-Network <NetworkWithLocationsNetwork>

Required?False
Position?named
Default value 
Accept pipeline input?false
Accept wildcard characters?False

-NetworkDomain <NetworkDomainType>

Required?False
Position?named
Default value 
Accept pipeline input?false
Accept wildcard characters?False

-NetworkDomainId <String>

Required?False
Position?named
Default value 
Accept pipeline input?false
Accept wildcard characters?False

-Vlan <VlanType>

Required?False
Position?named
Default value 
Accept pipeline input?false
Accept wildcard characters?False

-VlanId <String>

Required?False
Position?named
Default value 
Accept pipeline input?false
Accept wildcard characters?False

-Location <String>

Required?False
Position?named
Default value 
Accept pipeline input?false
Accept wildcard characters?False

-Connection <ComputeServiceConnection>

Required?False
Position?named
Default value 
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?False

-InformationAction <ActionPreference>

Required?False
Position?named
Default value 
Accept pipeline input?false
Accept wildcard characters?False

-InformationVariable <String>

Required?False
Position?named
Default value 
Accept pipeline input?false
Accept wildcard characters?False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

 

Example Response

 

name : node01
description : node01
operatingSystem : DD.CBU.Compute.Api.Contracts.Network20.OperatingSystemType
cpuCount : 2
memoryGb : 4
disk : {cb8e3aa2-abd9-4cc6-b269-24231e8cc8d1}
nic :
networkInfo : DD.CBU.Compute.Api.Contracts.Network20.ServerTypeNetworkInfo
backup :
monitoring :
softwareLabel :
sourceImageId : 29e2c229-bd55-4cd9-85ce-de37f467212a
createTime : 10/22/2015 9:14:14 PM
deployed : True
started : True
state : NORMAL
progress :
machineStatus : {vmwareToolsVersionStatus, vmwareToolsRunningStatus, vmwareToolsApiVersion}
id : fea5f601-31b2-4a92-b6d3-4dd08fa49db1
datacenterId : AU9
  • No labels