Skip to content

Commit

Permalink
set properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-shandar committed Nov 16, 2017
1 parent 29598d0 commit 254f7c1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,20 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<OutputPath>..\..\..\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Compute\</OutputPath>
<DefineConstants>TRACE;DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>TRACE;SIGN</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<DelaySign>true</DelaySign>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@

namespace Microsoft.Azure.Commands.Compute
{
[Cmdlet(VerbsCommon.New, ProfileNouns.VirtualMachine, SupportsShouldProcess = true)]
[Cmdlet(
VerbsCommon.New,
ProfileNouns.VirtualMachine,
SupportsShouldProcess = true,
DefaultParameterSetName = "DefaultParameterSet")]
[OutputType(typeof(PSAzureOperationResponse))]
public class NewAzureVMCommand : VirtualMachineBaseCmdlet
{
Expand Down Expand Up @@ -102,20 +106,20 @@ public class NewAzureVMCommand : VirtualMachineBaseCmdlet
[Parameter(
ParameterSetName = StrategyParameterSet,
Mandatory = true)]
public string Name { get; }
public string Name { get; set; }

[Parameter(
ParameterSetName = StrategyParameterSet,
Mandatory = false)]
public string AddressPrefix { get; } = "192.168.0.0/16";
public string AddressPrefix { get; set; } = "192.168.0.0/16";

[Parameter(
ParameterSetName = StrategyParameterSet,
Mandatory = false)]
public string SubnetAddressPrefix { get; } = "192.168.1.0/24";
public string SubnetAddressPrefix { get; set; } = "192.168.1.0/24";

[Parameter(ParameterSetName = StrategyParameterSet, Mandatory = true)]
public PSCredential Credential { get; }
public PSCredential Credential { get; set; }

public override void ExecuteCmdlet()
{
Expand Down

0 comments on commit 254f7c1

Please sign in to comment.