Skip to content

Commit 254f7c1

Browse files
set properties.
1 parent 29598d0 commit 254f7c1

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

src/ResourceManager/Common/Commands.Common.Strategies/Commands.Common.Strategies.csproj

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,20 @@
1616
<DebugSymbols>true</DebugSymbols>
1717
<DebugType>full</DebugType>
1818
<Optimize>false</Optimize>
19-
<OutputPath>bin\Debug\</OutputPath>
20-
<DefineConstants>DEBUG;TRACE</DefineConstants>
19+
<OutputPath>..\..\..\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Compute\</OutputPath>
20+
<DefineConstants>TRACE;DEBUG</DefineConstants>
2121
<ErrorReport>prompt</ErrorReport>
2222
<WarningLevel>4</WarningLevel>
2323
</PropertyGroup>
2424
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2525
<DebugType>pdbonly</DebugType>
2626
<Optimize>true</Optimize>
2727
<OutputPath>bin\Release\</OutputPath>
28-
<DefineConstants>TRACE</DefineConstants>
28+
<DefineConstants>TRACE;SIGN</DefineConstants>
2929
<ErrorReport>prompt</ErrorReport>
3030
<WarningLevel>4</WarningLevel>
31-
</PropertyGroup>
32-
<PropertyGroup>
3331
<SignAssembly>true</SignAssembly>
34-
</PropertyGroup>
35-
<PropertyGroup>
3632
<DelaySign>true</DelaySign>
37-
</PropertyGroup>
38-
<PropertyGroup>
3933
<AssemblyOriginatorKeyFile>MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
4034
</PropertyGroup>
4135
<ItemGroup>

src/ResourceManager/Compute/Commands.Compute/VirtualMachine/Operation/NewAzureVMCommand.cs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@
4040

4141
namespace Microsoft.Azure.Commands.Compute
4242
{
43-
[Cmdlet(VerbsCommon.New, ProfileNouns.VirtualMachine, SupportsShouldProcess = true)]
43+
[Cmdlet(
44+
VerbsCommon.New,
45+
ProfileNouns.VirtualMachine,
46+
SupportsShouldProcess = true,
47+
DefaultParameterSetName = "DefaultParameterSet")]
4448
[OutputType(typeof(PSAzureOperationResponse))]
4549
public class NewAzureVMCommand : VirtualMachineBaseCmdlet
4650
{
@@ -102,20 +106,20 @@ public class NewAzureVMCommand : VirtualMachineBaseCmdlet
102106
[Parameter(
103107
ParameterSetName = StrategyParameterSet,
104108
Mandatory = true)]
105-
public string Name { get; }
109+
public string Name { get; set; }
106110

107111
[Parameter(
108112
ParameterSetName = StrategyParameterSet,
109113
Mandatory = false)]
110-
public string AddressPrefix { get; } = "192.168.0.0/16";
114+
public string AddressPrefix { get; set; } = "192.168.0.0/16";
111115

112116
[Parameter(
113117
ParameterSetName = StrategyParameterSet,
114118
Mandatory = false)]
115-
public string SubnetAddressPrefix { get; } = "192.168.1.0/24";
119+
public string SubnetAddressPrefix { get; set; } = "192.168.1.0/24";
116120

117121
[Parameter(ParameterSetName = StrategyParameterSet, Mandatory = true)]
118-
public PSCredential Credential { get; }
122+
public PSCredential Credential { get; set; }
119123

120124
public override void ExecuteCmdlet()
121125
{

0 commit comments

Comments
 (0)