Skip to content

Commit 4c8a0a7

Browse files
author
Pooneh
committed
fix references after merge and removing extra spaces for help samples
1 parent 39684ef commit 4c8a0a7

File tree

7 files changed

+32
-30
lines changed

7 files changed

+32
-30
lines changed

src/Common/Azure.Common.Extensions/Models/AzureEnvironment.Methods.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,5 +328,9 @@ public static class AzureEnvironmentConstants
328328
public const string AzureTrafficManagerDnsSuffix = "trafficmanager.net";
329329

330330
public const string ChinaTrafficManagerDnsSuffix = "trafficmanager.cn";
331+
332+
public const string AzureKeyVaultDnsSuffix = "vault.azure.net";
333+
334+
public const string AzureKeyVaultServiceEndpointResourceId = "https://vault.azure.net";
331335
}
332336
}

src/ResourceManager/KeyVault/Commands.KeyVault/Commands.KeyVault.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@
157157
<Reference Include="System.Xml.Linq" />
158158
</ItemGroup>
159159
<ItemGroup>
160+
<ProjectReference Include="..\..\..\Common\Azure.Common.Extensions\Common.Extensions.csproj">
161+
<Project>{b95c489c-8cb7-4dcf-8d5f-b9aebdbbaf89}</Project>
162+
<Name>Common.Extensions</Name>
163+
</ProjectReference>
160164
<ProjectReference Include="..\..\..\Common\Commands.Common\Commands.Common.csproj">
161165
<Project>{5ee72c53-1720-4309-b54b-5fb79703195f}</Project>
162166
<Name>Commands.Common</Name>

src/ResourceManager/KeyVault/Commands.KeyVault/Microsoft.Azure.Commands.KeyVault.dll-Help.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,9 @@
372372
</maml:introduction>
373373
<dev:code>
374374
PS C:\&gt;$KeyOperations = "decrypt", "verify"
375-
PS C:\&gt; $Expires = (Get-Date).AddYears(2).ToUniversalTime()
376-
PS C:\&gt; $NotBefore=(Get-Date).ToUniversalTime()
377-
PS C:\&gt; Add-AzureKeyVaultKey -VaultName "Contoso" -Name "ITHsmNonDefault" -Destination "HSM" -Expires $Expires -NotBefore $NotBefore -KeyOps $KeyOperations -Disable
375+
PS C:\&gt; $Expires = (Get-Date).AddYears(2).ToUniversalTime()
376+
PS C:\&gt; $NotBefore=(Get-Date).ToUniversalTime()
377+
PS C:\&gt; Add-AzureKeyVaultKey -VaultName "Contoso" -Name "ITHsmNonDefault" -Destination "HSM" -Expires $Expires -NotBefore $NotBefore -KeyOps $KeyOperations -Disable
378378
</dev:code>
379379
<dev:remarks>
380380
<maml:para>The first command stores the values decrypt and verify in the $KeyOperations variable.</maml:para>
@@ -412,7 +412,7 @@
412412
</maml:introduction>
413413
<dev:code>
414414
PS C:\&gt;$Password = ConvertTo-SecureString -String "password" -AsPlainText -Force
415-
PS C:\&gt; Add-AzureKeyVaultKey -VaultName "Contoso" -Name "ITPfx" -KeyFilePath "C:\Contoso\ITPfx.pfx" -KeyFilePassword $Password
415+
PS C:\&gt; Add-AzureKeyVaultKey -VaultName "Contoso" -Name "ITPfx" -KeyFilePath "C:\Contoso\ITPfx.pfx" -KeyFilePassword $Password
416416
</dev:code>
417417
<dev:remarks>
418418
<maml:para>The first command converts a string into a secure string by using the ConvertTo-SecureString cmdlet, and then stores that string in the $Password variable. For more information, type Get-Help ConvertTo-SecureString.</maml:para>
@@ -431,8 +431,8 @@
431431
</maml:introduction>
432432
<dev:code>
433433
PS C:\&gt;$Password = ConvertTo-SecureString -String "password" -AsPlainText -Force
434-
PS C:\&gt; $Expires = (Get-Date).AddYears(2).ToUniversalTime()
435-
PS C:\&gt; Add-AzureKeyVaultKey -VaultName "Contoso" -Name "ITPfxToHSM" -Destination "HSM" -KeyFilePath "C:\Contoso\ITPfx.pfx" -KeyFilePassword $Password -Expires $Expires
434+
PS C:\&gt; $Expires = (Get-Date).AddYears(2).ToUniversalTime()
435+
PS C:\&gt; Add-AzureKeyVaultKey -VaultName "Contoso" -Name "ITPfxToHSM" -Destination "HSM" -KeyFilePath "C:\Contoso\ITPfx.pfx" -KeyFilePassword $Password -Expires $Expires
436436
</dev:code>
437437
<dev:remarks>
438438
<maml:para>The first command converts a string into a secure string by using the ConvertTo-SecureString cmdlet, and then stores that string in the $Password variable. </maml:para>
@@ -1401,7 +1401,7 @@
14011401
</maml:introduction>
14021402
<dev:code>
14031403
PS C:\&gt;$Expires= (Get-Date).AddYears(2).ToUniversalTime()
1404-
PS C:\&gt; Set-AzureKeyVaultKey -VaultName "Contoso" -Name "ITSoftware" -Expires $Expires -Enable $True
1404+
PS C:\&gt; Set-AzureKeyVaultKey -VaultName "Contoso" -Name "ITSoftware" -Expires $Expires -Enable $True
14051405
</dev:code>
14061406
<dev:remarks>
14071407
<maml:para>The first command creates a DateTime object by using the Get-Date cmdlet. That object specifies a time two years in the future. The command stores that date in the $Expires variable. For more information, type Get-Help Get-Date.</maml:para>
@@ -1551,7 +1551,7 @@
15511551
</maml:introduction>
15521552
<dev:code>
15531553
PS C:\&gt;$Secret = ConvertTo-SecureString -String "password" -AsPlainText -Force
1554-
PS C:\&gt; Set-AzureKeyVaultSecret -VaultName "Contoso" -Name "ITSecret" -SecretValue $Secret
1554+
PS C:\&gt; Set-AzureKeyVaultSecret -VaultName "Contoso" -Name "ITSecret" -SecretValue $Secret
15551555
</dev:code>
15561556
<dev:remarks>
15571557
<maml:para>The first command converts a string into a secure string by using the ConvertTo-SecureString cmdlet, and then stores that string in the $Secret variable. For more information, type Get-Help ConvertTo-SecureString.</maml:para>

src/ResourceManager/KeyVault/Commands.KeyVault/Models/DataServiceCredential.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using Microsoft.Azure.Commands.KeyVault.Properties;
16+
using Microsoft.Azure.Common.Extensions;
17+
using Microsoft.Azure.Common.Extensions.Authentication;
18+
using Microsoft.Azure.Common.Extensions.Models;
1519
using System;
16-
using System.Collections.Generic;
1720
using System.Linq;
18-
using Microsoft.WindowsAzure.Commands.Common;
19-
using Microsoft.WindowsAzure.Commands.Common.Models;
20-
using Microsoft.WindowsAzure.Commands.Utilities.Common.Authentication;
21-
using Microsoft.Azure.Commands.KeyVault.Properties;
2221

2322
namespace Microsoft.Azure.Commands.KeyVault.Models
2423
{

src/ResourceManager/KeyVault/Commands.KeyVault/Models/KeyVaultCmdletBase.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System;
16-
using System.Net;
17-
using System.Net.Http;
15+
using Microsoft.Azure.Common.Extensions;
1816
using Microsoft.WindowsAzure.Commands.Utilities.Common;
19-
using Microsoft.WindowsAzure.Commands.Common;
17+
using System;
2018
using System.IO;
19+
using System.Net.Http;
2120

2221
namespace Microsoft.Azure.Commands.KeyVault.Models
2322
{

src/ResourceManager/KeyVault/Commands.KeyVault/Models/KeyVaultDataServiceClient.cs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,18 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System;
16-
using System.Net.Http;
17-
using System.Security;
18-
using System.Collections.Generic;
19-
using System.Linq;
20-
using Microsoft.WindowsAzure;
21-
using Microsoft.WindowsAzure.Common.Internals;
22-
using Microsoft.WindowsAzure.Commands.Common;
23-
using Microsoft.WindowsAzure.Commands.Common.Models;
2415
using Microsoft.Azure.Commands.KeyVault.Properties;
25-
using Client = Microsoft.Azure.Commands.KeyVault.Client;
2616
using Microsoft.Azure.Commands.KeyVault.WebKey;
17+
using Microsoft.Azure.Common.Extensions;
18+
using Microsoft.Azure.Common.Extensions.Models;
19+
using Microsoft.WindowsAzure;
20+
using Microsoft.WindowsAzure.Common.Internals;
21+
using System;
22+
using System.Collections.Generic;
2723
using System.IO;
24+
using System.Linq;
25+
using System.Net.Http;
26+
using System.Security;
2827

2928
namespace Microsoft.Azure.Commands.KeyVault.Models
3029
{

src/ResourceManager/KeyVault/Commands.KeyVault/Models/VaultUriHelper.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using System;
16-
using System.Collections.Generic;
17-
using System.Text;
1816
using System.Linq;
19-
using Microsoft.WindowsAzure.Commands.Common.Models;
2017
using Microsoft.Azure.Commands.KeyVault.Properties;
2118

2219
namespace Microsoft.Azure.Commands.KeyVault.Models

0 commit comments

Comments
 (0)