Permalink
Browse files

Fixes for Add-AzureEnvironment

  • Loading branch information...
ogail ogail
ogail authored and ogail committed Oct 17, 2013
1 parent a10c294 commit c74e4347180031014f755193cf48d114acdd0ae8
@@ -607,6 +607,13 @@
</maml:description>
<command:parameterValue required="true" variableLength = "false" >String</command:parameterValue>
</command:parameter>
+ <command:parameter required = "false" variableLength = "false" globbing = "false" pipelineInput = "true (ByPropertyName)" position = "named" >
+ <maml:name>ActiveDirectoryEndpoint</maml:name>
+ <maml:description>
+ <maml:para>The URI for the Active Directory service for this environment</maml:para>
+ </maml:description>
+ <command:parameterValue required="true" variableLength = "false" >String</command:parameterValue>
+ </command:parameter>
</command:syntaxItem>
</command:syntax>
<command:parameters>
@@ -645,6 +652,13 @@
</maml:description>
<command:parameterValue required="true" variableLength = "false" >String</command:parameterValue>
</command:parameter>
+ <command:parameter required = "false" variableLength = "false" globbing = "false" pipelineInput = "true (ByPropertyName)" position = "named" >
+ <maml:name>ActiveDirectoryEndpoint</maml:name>
+ <maml:description>
+ <maml:para>The URI for the Active Directory service for this environment</maml:para>
+ </maml:description>
+ <command:parameterValue required="true" variableLength = "false" >String</command:parameterValue>
+ </command:parameter>
</command:parameters>
<command:inputTypes>
<command:inputType>
@@ -41,7 +41,7 @@ public class AddAzureEnvironmentCommand : CmdletBase
public string StorageEndpoint { get; set; }
[Parameter(Position = 5, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The URI for the Active Directory service for this environment")]
- public string AdTenantUrl { get; set; }
+ public string ActiveDirectoryEndpoint { get; set; }
[PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
public override void ExecuteCmdlet()
@@ -53,7 +53,8 @@ public override void ExecuteCmdlet()
ServiceEndpoint = ServiceEndpoint,
ManagementPortalUrl = ManagementPortalUrl,
StorageEndpointSuffix = StorageEndpoint,
- AdTenantUrl = AdTenantUrl
+ AdTenantUrl = ActiveDirectoryEndpoint,
+ CommonTenantId = "Common"
};
WindowsAzureProfile.Instance.AddEnvironment(newEnvironment);

0 comments on commit c74e434

Please sign in to comment.