Skip to content

Commit 5e816e4

Browse files
msJinLeiisra-felYeming Liu
authored
Update common to 108 to address issues (Azure#27697) (Azure#27715)
Co-authored-by: Yeming Liu <[email protected]> Co-authored-by: Yeming Liu <[email protected]>
1 parent fd9d02b commit 5e816e4

File tree

6 files changed

+42
-20
lines changed

6 files changed

+42
-20
lines changed

src/Accounts/Accounts/Account/DisconnectAzureRmAccount.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public override void ExecuteCmdlet()
126126
{
127127
if (GetContextModificationScope() == ContextModificationScope.CurrentUser)
128128
{
129-
AzureSession.Instance.AuthenticationFactory.RemoveUser(azureAccount, null);
129+
AzureSession.Instance.AuthenticationFactory.RemoveUser(azureAccount, environment: null);
130130
}
131131

132132
if (AzureRmProfileProvider.Instance.Profile != null)

src/Accounts/Accounts/ChangeLog.md

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
-->
2020

2121
## Upcoming Release
22+
* Removed the warning message about failing to initialize PSStyle in automation runbooks. [#26155]
23+
* Increased the timeout for tab-completion of location, resource group, etc. to 10 seconds.
2224

2325
## Version 4.2.0
2426
* Updated warning message about MFA. For more details, see https://go.microsoft.com/fwlink/?linkid=2276314

src/Accounts/Authentication/Factories/AuthenticationFactory.cs

+12-2
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,8 @@ public ServiceClientCredentials GetServiceClientCredentials(string accessToken,
485485
/// Remove a user from token cache.
486486
/// </summary>
487487
/// <param name="account"></param>
488-
/// <param name="tokenCache">This parameter is no longer used. However to keep the API unchanged it's not removed.</param>
489-
public void RemoveUser(IAzureAccount account, IAzureTokenCache tokenCache)
488+
/// <param name="environment"></param>
489+
public void RemoveUser(IAzureAccount account, IAzureEnvironment environment)
490490
{
491491
if (account != null && !string.IsNullOrEmpty(account.Id) && !string.IsNullOrWhiteSpace(account.Type))
492492
{
@@ -704,5 +704,15 @@ public ServiceClientCredentials GetServiceClientCredentials(IAzureContext contex
704704
{
705705
return GetServiceClientCredentials(context, targetEndpoint, AzureCmdletContext.CmdletNone);
706706
}
707+
708+
/// <summary>
709+
/// Remove a user from token cache.
710+
/// </summary>
711+
/// <param name="account"></param>
712+
/// <param name="tokenCache">This parameter is no longer used. However to keep the API unchanged it's not removed.</param>
713+
public void RemoveUser(IAzureAccount account, IAzureTokenCache tokenCache)
714+
{
715+
RemoveUser(account, environment: null);
716+
}
707717
}
708718
}

tools/Common.Netcore.Dependencies.targets

+17-17
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
<ItemGroup>
44
<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.24"/>
55
<PackageReference Include="Microsoft.Rest.ClientRuntime.Azure" Version="3.3.19"/>
6-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Aks" Version="1.3.106-preview"/>
7-
<PackageReference Include="Microsoft.Azure.PowerShell.Authentication.Abstractions" Version="1.3.106-preview"/>
8-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Authorization" Version="1.3.106-preview"/>
9-
<PackageReference Include="Microsoft.Azure.PowerShell.Common" Version="1.3.106-preview"/>
10-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Compute" Version="1.3.106-preview"/>
11-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Graph.Rbac" Version="1.3.106-preview"/>
12-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.KeyVault" Version="1.3.106-preview"/>
13-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Monitor" Version="1.3.106-preview"/>
14-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Network" Version="1.3.106-preview"/>
15-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.PolicyInsights" Version="1.3.106-preview"/>
16-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.ResourceManager" Version="1.3.106-preview"/>
17-
<PackageReference Include="Microsoft.Azure.PowerShell.Storage" Version="1.3.106-preview"/>
18-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Storage.Management" Version="1.3.106-preview"/>
19-
<PackageReference Include="Microsoft.Azure.PowerShell.Strategies" Version="1.3.106-preview"/>
20-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Websites" Version="1.3.106-preview"/>
21-
<PackageReference Include="Microsoft.Azure.PowerShell.Common.Share" Version="1.3.106-preview"/>
6+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Aks" Version="1.3.108-preview"/>
7+
<PackageReference Include="Microsoft.Azure.PowerShell.Authentication.Abstractions" Version="1.3.108-preview"/>
8+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Authorization" Version="1.3.108-preview"/>
9+
<PackageReference Include="Microsoft.Azure.PowerShell.Common" Version="1.3.108-preview"/>
10+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Compute" Version="1.3.108-preview"/>
11+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Graph.Rbac" Version="1.3.108-preview"/>
12+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.KeyVault" Version="1.3.108-preview"/>
13+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Monitor" Version="1.3.108-preview"/>
14+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Network" Version="1.3.108-preview"/>
15+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.PolicyInsights" Version="1.3.108-preview"/>
16+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.ResourceManager" Version="1.3.108-preview"/>
17+
<PackageReference Include="Microsoft.Azure.PowerShell.Storage" Version="1.3.108-preview"/>
18+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Storage.Management" Version="1.3.108-preview"/>
19+
<PackageReference Include="Microsoft.Azure.PowerShell.Strategies" Version="1.3.108-preview"/>
20+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Websites" Version="1.3.108-preview"/>
21+
<PackageReference Include="Microsoft.Azure.PowerShell.Common.Share" Version="1.3.108-preview"/>
2222
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
2323
</ItemGroup>
2424
<ItemGroup>
@@ -37,7 +37,7 @@
3737
<PackageReference Include="PowerShellStandard.Library" Version="5.1.0" PrivateAssets="All" />
3838
</ItemGroup>
3939
<PropertyGroup>
40-
<StorageToolsPath>$(NugetPackageRoot)\microsoft.azure.powershell.storage\1.3.106-preview\tools\</StorageToolsPath>
40+
<StorageToolsPath>$(NugetPackageRoot)\microsoft.azure.powershell.storage\1.3.108-preview\tools\</StorageToolsPath>
4141
</PropertyGroup>
4242
<ItemGroup Condition="'$(OmitJsonPackage)' != 'true'">
4343
<PackageReference Include="Newtonsoft.Json" Version="13.0.2"/>

tools/TestFx/Mocks/MockCertificateAuthenticationFactory.cs

+5
Original file line numberDiff line numberDiff line change
@@ -124,5 +124,10 @@ public IAccessToken Authenticate(IAzureAccount account, IAzureEnvironment enviro
124124
{
125125
throw new NotImplementedException();
126126
}
127+
128+
public void RemoveUser(IAzureAccount account, IAzureEnvironment environment)
129+
{
130+
throw new NotImplementedException();
131+
}
127132
}
128133
}

tools/TestFx/Mocks/MockTokenAuthenticationFactory.cs

+5
Original file line numberDiff line numberDiff line change
@@ -148,5 +148,10 @@ public ServiceClientCredentials GetServiceClientCredentials(IAzureContext contex
148148
{
149149
return GetServiceClientCredentials(context, targetEndpoint, AzureCmdletContext.CmdletNone);
150150
}
151+
152+
public void RemoveUser(IAzureAccount account, IAzureEnvironment environment)
153+
{
154+
throw new NotImplementedException();
155+
}
151156
}
152157
}

0 commit comments

Comments
 (0)