Skip to content

Release 0.8.13 #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 74 commits into from
Jan 9, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
48bf44d
0.8.10 release
Nov 17, 2014
54c622e
Merge pull request #1 from ogail/dev
ogail Nov 17, 2014
a56a1d2
Merge pull request #2 from Azure/dev
ogail Nov 17, 2014
a1818f4
Update Scheduler MAML client to 4.1
vivsriaus Nov 20, 2014
0987fc8
Remove app.config
vivsriaus Nov 20, 2014
aa401e7
Merge pull request #3 from vivsriaus/master
Nov 21, 2014
6497655
Merge branch 'dev' of github.com:Azure/azure-powershell into dev
Nov 21, 2014
d7455de
Revert "Update Scheduler MAML client to 4.1"
Nov 21, 2014
7309171
Merge pull request #6 from Azure/revert-3-master
Nov 22, 2014
2a1bd99
Merge pull request #5 from ogail/dev
ogail Nov 22, 2014
270237e
Merge branch 'master' of github.com:Azure/azure-powershell
Nov 22, 2014
fa8cb8d
Merge branch 'master' into dev
Nov 22, 2014
dd9e5ea
Key Vault - moving codes into new repo
Nov 25, 2014
f073cda
Update key vault change requirements to the build and common
Nov 25, 2014
ea4f104
Adding key vault to resource manager module
Nov 26, 2014
a03b4d8
Add missing azure environments support
Nov 26, 2014
2029816
Merge pull request #10 from pomortaz/vault
ogail Nov 26, 2014
7ab80dc
Merge branch 'vault' of https://github.com/Azure/azure-powershell-pr …
Nov 26, 2014
ca30de8
1. Updating Azure Key Vault PowerShell with V3 client and adding vers…
Dec 3, 2014
e9e9daf
putting get and set accessors of properties in one line
Dec 4, 2014
508e973
Merge pull request #8 from ogail/dev
ogail Dec 4, 2014
da38666
Using ConfirmAction and adding Key Vault environment endpoints to the…
Dec 4, 2014
b311fe0
Merge pull request #12 from pomortaz/vault
ogail Dec 5, 2014
3be1b01
Merge branch 'vault' of https://github.com/Azure/azure-powershell-pr …
Dec 6, 2014
84c648b
Remvoe the version from the StreamAnalytics Help file
qunshuzhang Dec 10, 2014
4995249
Merge pull request #43 from qunshuzhang/master
ogail Dec 12, 2014
ab6abfe
key vault backup and restore cmdlets
Dec 12, 2014
b62cad9
added filter by mail to get-azureaduser
Dec 12, 2014
0cdfa9c
Merge pull request #44 from ogail/dev
Dec 12, 2014
5c475fb
Key Vault Client and WebKey are added to the Key Vault and dependency…
Dec 12, 2014
526e3b8
fixing merge conflicts in StreamAnalytics Help
markcowl Dec 15, 2014
7fe760c
Merge pull request #48 from markcowl/merge-0.8.12
ogail Dec 15, 2014
cf15c67
Align imported NuGet packages for Azure PowerShell solution
Dec 15, 2014
4cfd11a
Regenerate MSI
Dec 15, 2014
1994d34
Adding Id to the top level output items returned and flattening singl…
Dec 15, 2014
a7ba5b2
Merge branch 'master' of https://github.com/Azure/azure-powershell in…
Dec 16, 2014
85cf29d
Merge pull request #49 from ogail/nuget
ogail Dec 16, 2014
a956427
Fixing issue with tokens that do not normalize user ids
markcowl Dec 16, 2014
6fa5e6f
Merge branch 'dev' of github.com:Azure/azure-powershell into fixAccou…
markcowl Dec 16, 2014
3c88e46
Adding Reset-AzureVnetGateway cmdlet.
Dec 16, 2014
ccc26e5
Changing property get and set to be on a single line.
Dec 16, 2014
8859656
Adding documentation for Reset-AzureVNetGateway
Dec 16, 2014
33291cc
Merge pull request #52 from daschult/dev
ogail Dec 17, 2014
12dea23
Adding tests to verify the fix
markcowl Dec 17, 2014
64694f4
making id checks consistently case insensitive
markcowl Dec 17, 2014
42e7183
Fixing parallel issue with environments and making unit test more robust
markcowl Dec 17, 2014
a45a0c0
Improving error message
markcowl Dec 18, 2014
bd7e2b4
Merge pull request #51 from markcowl/fixAccountCapital
markcowl Dec 18, 2014
0a5ea1c
Corrected format string in framing ClientRequestId
sriramvu Dec 18, 2014
928c243
Merge pull request #56 from AsrOneSdk/dev
stankovski Dec 18, 2014
b739664
Added changes related to chef extension latest version and renamed au…
Dec 18, 2014
016d848
Merge pull request #57 from ClogenyTechnologies/sid-fix-chef-extensio…
ogail Dec 18, 2014
367d457
Refactor Microsoft.Azure.Common.Extensions project
Dec 19, 2014
fe09301
Fix UTs
ogail Dec 19, 2014
1e28080
Fix UTs
ogail Dec 19, 2014
8357303
Merge pull request #59 from ogail/common
ogail Dec 19, 2014
c5850d7
update network client
deepakswifty Dec 19, 2014
8ee6c12
Merge pull request #62 from DeepakRajendranMsft/UpdateNetworkClient
stankovski Dec 22, 2014
347fb75
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
stankovski Dec 22, 2014
79990d6
Merge pull request #18 from stankovski/dev
stankovski Dec 31, 2014
a86383d
adding tenant ID to the output properties of Get-AzureSubscription cm…
Dec 31, 2014
299e79a
Getting the first or default tenant ID of a subscription
Jan 2, 2015
6731e94
Merge pull request #19 from pomortaz/dev
Jan 2, 2015
39684ef
Merge branch 'dev' of https://github.com/Azure/azure-powershell-pr in…
Jan 2, 2015
4c8a0a7
fix references after merge and removing extra spaces for help samples
Jan 2, 2015
07d5696
updating wxi
Jan 3, 2015
1fbf97e
Merge pull request #21 from pomortaz/vault
Jan 3, 2015
af2c434
Update xml help file (Jan 05 version)
Jan 6, 2015
474e063
Merge pull request #23 from YuhuiZhong/dev
markcowl Jan 6, 2015
d5ea1bd
Updating version to 0.8.13
markcowl Jan 6, 2015
22ea53c
Merge pull request #24 from markcowl/release-0.8.13
markcowl Jan 6, 2015
c81713f
Fix signing issue and upgrade storage version for network library
markcowl Jan 7, 2015
3bb6b68
Merge pull request #26 from markcowl/release-0.8.13
markcowl Jan 7, 2015
676e167
Update ChangeLog.txt
markcowl Jan 8, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions AzurePowershell.Test.targets
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<SqlDatabaseTestDebug>.\src\ServiceManagement\Sql\Commands.SqlDatabase.Test\bin\Debug\Microsoft.WindowsAzure.Commands.SqlDatabase.Test.dll</SqlDatabaseTestDebug>
<HDInsightTestDebug>.\src\ServiceManagement\HDInsight\Commands.HDInsight.Test\bin\Debug\Microsoft.WindowsAzure.Commands.HDInsight.Test.dll</HDInsightTestDebug>
<StorageTestDebug>.\src\ServiceManagement\Storage\Commands.Storage.Test\bin\Debug\Microsoft.WindowsAzure.Commands.Storage.Test.dll</StorageTestDebug>
<KeyVaultTestDebug>.\src\ResourceManager\KeyVault\Commands.KeyVault.Test\bin\Debug\Microsoft.Azure.Commands.KeyVault.Test.dll</KeyVaultTestDebug>
<TestFilter>"!Functional&#x26;!Scenario&#x26;!AzureRTScenario&#x26;!Sequential&#x26;!PIRTest&#x26;!Preview&#x26;!ADDomain"</TestFilter>
<ScenarioTestFilter>All</ScenarioTestFilter>
<OneSDKCITFilter>"OneSDK&#x26;CIT"</OneSDKCITFilter>
Expand Down Expand Up @@ -137,6 +138,13 @@
<Xunit.Runner.MSBuild.xunit Assemblies="$(SqlTestDebug)" Html="$(TestOutputDirectory)\SqlTests.xunit.dll.html" Verbose="false"
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
</Target>

<!-- Run the KeyVault tests -->
<Target Name="KeyVaultTests">
<Message Importance="high" Text="Running KeyVault tests" />
<Xunit.Runner.MSBuild.xunit Assemblies="$(KeyVaultTestDebug)" Html="$(TestOutputDirectory)\KeyVaultTests.xunit.dll.html" Verbose="true"
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false"/>
</Target>

<!-- Run the scenario tests with Mocks -->
<Target Name="MockedScenarioTests">
Expand Down
14 changes: 14 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
2015.01.08 version 0.8.13
* Key Vault Service - new cmdlets in AzureResourceManager mode:
* Keys:
* Add-AzureKeyVaultKey
* Get-AzureKeyVaultKey
* Set-AzureKeyVaultKey
* Backup-AzureKeyVaultKey
* Restore-AzureKeyVaultKey
* Remove-AzureKeyVaultKey
* Secrets:
* Get-AzureKeyVaultSecret
* Set-AzureKeyVaultSecret
* Remove-AzureKeyVaultSecret

2014.12.12 version 0.8.12
* StreamAnalytics
* New cmdlets in AzureResourceManager mode
Expand Down
2 changes: 1 addition & 1 deletion build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
<!-- Run checkin tests for each pull request -->
<Target Name="Test" DependsOnTargets="BuildDebug;BeforeRunTests">
<Message Importance="high" Text="Running check in tests..." />
<CallTarget Targets="SqlTests; CommonTests; TestManagement; TestHDInsight; TestManagedCache; TestServiceManagement; TestServiceManagementExtensions; TestSqlDatabase; TestStorage; TestResourceManager; MockedScenarioTests; TestDSCExtension_x64; TestBatch; TestDataFactoryManager; TestRecoveryServices; TestStreamAnalyticsManager"/>
<CallTarget Targets="KeyVaultTests; SqlTests; CommonTests; TestManagement; TestHDInsight; TestManagedCache; TestServiceManagement; TestServiceManagementExtensions; TestSqlDatabase; TestStorage; TestResourceManager; MockedScenarioTests; TestDSCExtension_x64; TestBatch; TestDataFactoryManager; TestRecoveryServices; TestStreamAnalyticsManager"/>
</Target>

<!-- Run Full switch with scenario tests -->
Expand Down
4 changes: 2 additions & 2 deletions setup/azurecmd.wxs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

<?define productName="Microsoft Azure PowerShell - December 2014" ?>
<?define productName="Microsoft Azure PowerShell - January 2015" ?>
<?define sourceDir="$(var.SolutionDir)..\src\Package\$(var.Configuration)" ?>
<?define caSourceDir="$(var.SolutionDir)setup\bin\$(var.Configuration)" ?>

<?define version="0.8.12" ?>
<?define version="0.8.13" ?>
<?define versionedStartMenuFolder="Microsoft Azure" ?>
<?define staleStartMenuFolder="Windows Azure" ?>

Expand Down
258 changes: 254 additions & 4 deletions setup/azurecmdfiles.wxi

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions src/AzurePowershell.sln
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Network", "Service
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Network.Test", "ServiceManagement\Network\Commands.Network.Test\Commands.Network.Test.csproj", "{FDB897BD-FCB4-44A1-8D66-AC99F22EC737}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.KeyVault", "ResourceManager\KeyVault\Commands.KeyVault\Commands.KeyVault.csproj", "{9FFC40CC-A341-4D0C-A25D-DC6B78EF6C94}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.KeyVault.Test", "ResourceManager\KeyVault\Commands.KeyVault.Test\Commands.KeyVault.Test.csproj", "{080B0477-7E52-4455-90AB-23BD13D1B1CE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.RecoveryServices", "ServiceManagement\RecoveryServices\Commands.RecoveryServices\Commands.RecoveryServices.csproj", "{98B10548-DF97-4FB1-8D82-2A12945D4F21}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.RecoveryServices.Test", "ServiceManagement\RecoveryServices\Commands.RecoveryServices.Test\Commands.RecoveryServices.Test.csproj", "{A415F75B-EB6A-49A6-934E-5BA71B83D6EB}"
Expand All @@ -151,6 +155,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.StreamAnalytics",
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.StreamAnalytics.Test", "ResourceManager\StreamAnalytics\Commands.StreamAnalytics.Test\Commands.StreamAnalytics.Test.csproj", "{7E6683BE-ECFF-4709-89EB-1325E9E70512}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Common.Extensions", "Common\Azure.Common.Extensions\Common.Extensions.csproj", "{B95C489C-8CB7-4DCF-8D5F-B9AEBDBBAF89}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -345,6 +351,10 @@ Global
{FDB897BD-FCB4-44A1-8D66-AC99F22EC737}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FDB897BD-FCB4-44A1-8D66-AC99F22EC737}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FDB897BD-FCB4-44A1-8D66-AC99F22EC737}.Release|Any CPU.Build.0 = Release|Any CPU
{9FFC40CC-A341-4D0C-A25D-DC6B78EF6C94}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9FFC40CC-A341-4D0C-A25D-DC6B78EF6C94}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9FFC40CC-A341-4D0C-A25D-DC6B78EF6C94}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9FFC40CC-A341-4D0C-A25D-DC6B78EF6C94}.Release|Any CPU.Build.0 = Release|Any CPU
{98B10548-DF97-4FB1-8D82-2A12945D4F21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{98B10548-DF97-4FB1-8D82-2A12945D4F21}.Debug|Any CPU.Build.0 = Debug|Any CPU
{98B10548-DF97-4FB1-8D82-2A12945D4F21}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand All @@ -353,6 +363,10 @@ Global
{A415F75B-EB6A-49A6-934E-5BA71B83D6EB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A415F75B-EB6A-49A6-934E-5BA71B83D6EB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A415F75B-EB6A-49A6-934E-5BA71B83D6EB}.Release|Any CPU.Build.0 = Release|Any CPU
{080B0477-7E52-4455-90AB-23BD13D1B1CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{080B0477-7E52-4455-90AB-23BD13D1B1CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{080B0477-7E52-4455-90AB-23BD13D1B1CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{080B0477-7E52-4455-90AB-23BD13D1B1CE}.Release|Any CPU.Build.0 = Release|Any CPU
{F49A314A-A235-47D3-A654-1EC19ACA366C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F49A314A-A235-47D3-A654-1EC19ACA366C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F49A314A-A235-47D3-A654-1EC19ACA366C}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand All @@ -361,6 +375,10 @@ Global
{7E6683BE-ECFF-4709-89EB-1325E9E70512}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7E6683BE-ECFF-4709-89EB-1325E9E70512}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7E6683BE-ECFF-4709-89EB-1325E9E70512}.Release|Any CPU.Build.0 = Release|Any CPU
{B95C489C-8CB7-4DCF-8D5F-B9AEBDBBAF89}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B95C489C-8CB7-4DCF-8D5F-B9AEBDBBAF89}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B95C489C-8CB7-4DCF-8D5F-B9AEBDBBAF89}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B95C489C-8CB7-4DCF-8D5F-B9AEBDBBAF89}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -390,6 +408,7 @@ Global
{F4ABAD68-64A5-4B23-B09C-42559A7524DE} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
{FDB897BD-FCB4-44A1-8D66-AC99F22EC737} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
{A415F75B-EB6A-49A6-934E-5BA71B83D6EB} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
{080B0477-7E52-4455-90AB-23BD13D1B1CE} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
{7E6683BE-ECFF-4709-89EB-1325E9E70512} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

using System;

namespace Microsoft.WindowsAzure.Commands.Utilities.Common.Authentication
namespace Microsoft.Azure.Common.Extensions.Authentication
{
/// <summary>
/// Base class representing an exception that occurs when
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.WindowsAzure;
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading;
using System.Threading.Tasks;

namespace Microsoft.WindowsAzure.Commands.Utilities.Common.Authentication
namespace Microsoft.Azure.Common.Extensions.Authentication
{
public class AccessTokenCredential : SubscriptionCloudCredentials
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
using System;
using System.Linq;

namespace Microsoft.WindowsAzure.Commands.Utilities.Common.Authentication
namespace Microsoft.Azure.Common.Extensions.Authentication
{
/// <summary>
/// Class storing the configuration information needed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.Azure.Common.Extensions.Models;
using Microsoft.Azure.Common.Extensions.Properties;
using System;
using System.Security;
using System.Windows.Forms;
using Microsoft.WindowsAzure.Commands.Common.Models;
using Microsoft.WindowsAzure.Commands.Common.Properties;

namespace Microsoft.WindowsAzure.Commands.Utilities.Common.Authentication
namespace Microsoft.Azure.Common.Extensions.Authentication
{
/// <summary>
/// A token provider that uses ADAL to retrieve
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
using System.Runtime.InteropServices;
using System.Windows.Forms;

namespace Microsoft.WindowsAzure.Commands.Utilities.Common.Authentication
namespace Microsoft.Azure.Common.Extensions.Authentication
{
/// <summary>
/// An implementation of <see cref="IWin32Window"/> that gives the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
using System.Runtime.ConstrainedExecution;
using System.Runtime.InteropServices;

namespace Microsoft.WindowsAzure.Commands.Utilities.Common.Authentication
namespace Microsoft.Azure.Common.Extensions.Authentication
{
/// <summary>
/// Class wrapping PInvoke signatures for Windows Credential store
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

using System;

namespace Microsoft.WindowsAzure.Commands.Utilities.Common.Authentication
namespace Microsoft.Azure.Common.Extensions.Authentication
{
public interface IAccessToken
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.Azure.Common.Extensions.Models;
using System.Security;
using Microsoft.WindowsAzure.Commands.Common.Models;

namespace Microsoft.WindowsAzure.Commands.Utilities.Common.Authentication
namespace Microsoft.Azure.Common.Extensions.Authentication
{
/// <summary>
/// This interface represents objects that can be used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

namespace Microsoft.WindowsAzure.Commands.Utilities.Common.Authentication
namespace Microsoft.Azure.Common.Extensions.Authentication
{
public enum LoginType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,20 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.IdentityModel.Clients.ActiveDirectory;
using System;
using System.IO;
using System.Security.Cryptography;
using Microsoft.IdentityModel.Clients.ActiveDirectory;
using Microsoft.WindowsAzure.Commands.Common;

namespace Microsoft.WindowsAzure.Commands.Utilities.Common.Authentication
namespace Microsoft.Azure.Common.Extensions.Authentication
{
/// <summary>
/// An implementation of the Adal token cache that stores the cache items
/// in the DPAPI-protected file.
/// </summary>
public class ProtectedFileTokenCache : TokenCache
{
private static readonly string CacheFileName = Path.Combine(AzurePowerShell.ProfileDirectory, "TokenCache.dat");
private static readonly string CacheFileName = Path.Combine(AzureSession.ProfileDirectory, AzureSession.TokenCacheFile);

private static readonly object fileLock = new object();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
using System;
using System.Runtime.InteropServices;
using System.Security;
using Microsoft.WindowsAzure.Commands.Utilities.Common.Authentication;
using FILETIME = System.Runtime.InteropServices.ComTypes.FILETIME;

namespace Microsoft.WindowsAzure.Commands.Common.Authentication
namespace Microsoft.Azure.Common.Extensions.Authentication
{
/// <summary>
/// Helper class to store service principal keys and retrieve them
Expand All @@ -27,7 +26,7 @@ namespace Microsoft.WindowsAzure.Commands.Common.Authentication
public static class ServicePrincipalKeyStore
{
private const string keyStoreUserName = "PowerShellServicePrincipalKey";
private const string targetNamePrefix = "AzurePowershell:target=";
private const string targetNamePrefix = "AzureSession:target=";

public static void SaveKey(string appId, string tenantId, SecureString serviceKey)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.Azure.Common.Extensions.Models;
using Microsoft.Azure.Common.Extensions.Properties;
using Microsoft.IdentityModel.Clients.ActiveDirectory;
using System;
using System.Collections.Generic;
using System.Security;
using Microsoft.IdentityModel.Clients.ActiveDirectory;
using Microsoft.WindowsAzure.Commands.Common.Authentication;
using Microsoft.WindowsAzure.Commands.Common.Models;
using Microsoft.WindowsAzure.Commands.Common.Properties;

namespace Microsoft.WindowsAzure.Commands.Utilities.Common.Authentication
namespace Microsoft.Azure.Common.Extensions.Authentication
{
internal class ServicePrincipalTokenProvider : ITokenProvider
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

namespace Microsoft.WindowsAzure.Commands.Utilities.Common.Authentication
namespace Microsoft.Azure.Common.Extensions.Authentication
{
public enum ShowDialog
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.Azure.Common.Extensions.Models;
using Microsoft.Azure.Common.Extensions.Properties;
using Microsoft.IdentityModel.Clients.ActiveDirectory;
using System;
using System.Runtime.InteropServices;
using System.Security;
using System.Threading;
using System.Windows.Forms;
using Microsoft.IdentityModel.Clients.ActiveDirectory;
using Microsoft.WindowsAzure.Commands.Common.Models;
using Microsoft.WindowsAzure.Commands.Common.Properties;

namespace Microsoft.WindowsAzure.Commands.Utilities.Common.Authentication
namespace Microsoft.Azure.Common.Extensions.Authentication
{
/// <summary>
/// A token provider that uses ADAL to retrieve
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,32 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.Azure.Common.Extensions.Factories;
using Microsoft.Azure.Common.Extensions.Models;
using Microsoft.Azure.Common.Extensions.Properties;
using System;
using System.Collections.Generic;
using Microsoft.WindowsAzure.Commands.Common.Common;
using Microsoft.WindowsAzure.Commands.Common.Factories;
using Microsoft.WindowsAzure.Commands.Common.Models;
using Microsoft.WindowsAzure.Commands.Common.Properties;
using Microsoft.WindowsAzure.Commands.Utilities.Common;
using Microsoft.WindowsAzure.Commands.Utilities.Common.Authentication;

namespace Microsoft.WindowsAzure.Commands.Common
using System.IO;

namespace Microsoft.Azure.Common.Extensions
{
public static class AzureSession
{
static AzureSession()
{
ClientFactory = new AzurePowerShellClientFactory();
ClientFactory = new ClientFactory();
AuthenticationFactory = new AuthenticationFactory();
CurrentContext = new AzureContext();
CurrentContext.Environment = AzureEnvironment.PublicEnvironments[EnvironmentName.AzureCloud];
AzureSession.OldProfileFile = "WindowsAzureProfile.xml";
AzureSession.OldProfileFileBackup = "WindowsAzureProfile.xml.bak";
AzureSession.ProfileDirectory = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
Resources.AzureDirectoryName); ;
AzureSession.ProfileFile = "AzureProfile.json";
AzureSession.TokenCacheFile = "TokenCache.dat";
}

public static AzureContext CurrentContext {get; private set; }
public static AzureContext CurrentContext { get; private set; }

public static void SetCurrentContext(AzureSubscription subscription, AzureEnvironment environment, AzureAccount account)
{
Expand Down Expand Up @@ -89,5 +93,15 @@ public static void SetCurrentContext(AzureSubscription subscription, AzureEnviro
public static IClientFactory ClientFactory { get; set; }

public static IAuthenticationFactory AuthenticationFactory { get; set; }

public static string ProfileDirectory { get; set; }

public static string TokenCacheFile { get; set; }

public static string ProfileFile { get; set; }

public static string OldProfileFileBackup { get; set; }

public static string OldProfileFile { get; set; }
}
}
Loading