Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Accounts/Accounts/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
-->

## Upcoming Release
* Added config `DisableErrorRecordsPersistence` to disable writing error records to file system [#21732]
* Updated Azure.Core to 1.34.0.
* Updated the reference of Azure PowerShell Common to 1.3.82-preview.

## Version 2.12.5
* Changed output stream from debug stream to warning stream for `CmdletPreviewAttribute`
Expand Down
33 changes: 32 additions & 1 deletion src/Accounts/Accounts/help/Clear-AzConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ Clear-AzConfig [-Force] [-PassThru] [-AppliesTo <String>] [-Scope <ConfigScope>]
```
Clear-AzConfig [-PassThru] [-AppliesTo <String>] [-Scope <ConfigScope>]
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [-DefaultSubscriptionForLogin]
[-DisplayBreakingChangeWarning] [-DisplaySurveyMessage] [-EnableDataCollection] [-EnableLoginByWam]
[-DisableErrorRecordsPersistence] [-DisplayBreakingChangeWarning] [-DisplayRegionIdentified]
[-DisplaySurveyMessage] [-EnableDataCollection] [-EnableLoginByWam]
[<CommonParameters>]
```

Expand Down Expand Up @@ -100,6 +101,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -DisableErrorRecordsPersistence
When disabled, error records will not be written to ~/.Azure/ErrorRecords. This config will be replaced by "EnableErrorRecordsPersistence" as opt-in in the next major release of Az around November 2023.

```yaml
Type: System.Management.Automation.SwitchParameter
Parameter Sets: ClearByKey
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DisplayBreakingChangeWarning
Controls if warning messages for breaking changes are displayed or suppressed. When enabled, a breaking change warning is displayed when executing cmdlets with breaking changes in a future release.

Expand All @@ -115,6 +131,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -DisplayRegionIdentified
When enabled, Azure PowerShell displays recommendations on regions which may reduce your costs.

```yaml
Type: System.Management.Automation.SwitchParameter
Parameter Sets: ClearByKey
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DisplaySurveyMessage
When enabled, you are prompted infrequently to participate in user experience surveys for Azure PowerShell.

Expand Down
35 changes: 33 additions & 2 deletions src/Accounts/Accounts/help/Get-AzConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ Gets the configs of Azure PowerShell.

```
Get-AzConfig [-AppliesTo <String>] [-Scope <ConfigScope>] [-DefaultProfile <IAzureContextContainer>]
[-DefaultSubscriptionForLogin] [-DisplayBreakingChangeWarning] [-DisplaySurveyMessage] [-EnableDataCollection]
[-EnableLoginByWam] [<CommonParameters>]
[-DefaultSubscriptionForLogin] [-DisableErrorRecordsPersistence] [-DisplayBreakingChangeWarning]
[-DisplayRegionIdentified] [-DisplaySurveyMessage] [-EnableDataCollection] [-EnableLoginByWam]
[<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -111,6 +112,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -DisableErrorRecordsPersistence
When disabled, error records will not be written to ~/.Azure/ErrorRecords. This config will be replaced by "EnableErrorRecordsPersistence" as opt-in in the next major release of Az around November 2023.

```yaml
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DisplayBreakingChangeWarning
Controls if warning messages for breaking changes are displayed or suppressed. When enabled, a breaking change warning is displayed when executing cmdlets with breaking changes in a future release.

Expand All @@ -126,6 +142,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -DisplayRegionIdentified
When enabled, Azure PowerShell displays recommendations on regions which may reduce your costs.

```yaml
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DisplaySurveyMessage
When enabled, you are prompted infrequently to participate in user experience surveys for Azure PowerShell.

Expand Down
33 changes: 32 additions & 1 deletion src/Accounts/Accounts/help/Update-AzConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ Updates the configs of Azure PowerShell.

```
Update-AzConfig [-AppliesTo <String>] [-Scope <ConfigScope>] [-DefaultProfile <IAzureContextContainer>]
[-WhatIf] [-Confirm] [-DefaultSubscriptionForLogin <String>] [-DisplayBreakingChangeWarning <Boolean>]
[-WhatIf] [-Confirm] [-DefaultSubscriptionForLogin <String>] [-DisableErrorRecordsPersistence <Boolean>]
[-DisplayBreakingChangeWarning <Boolean>] [-DisplayRegionIdentified <Boolean>]
[-DisplaySurveyMessage <Boolean>] [-EnableDataCollection <Boolean>] [-EnableLoginByWam <Boolean>]
[<CommonParameters>]
```
Expand Down Expand Up @@ -123,6 +124,21 @@ Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
```

### -DisableErrorRecordsPersistence
When disabled, error records will not be written to ~/.Azure/ErrorRecords. This config will be replaced by "EnableErrorRecordsPersistence" as opt-in in the next major release of Az around November 2023.

```yaml
Type: System.Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
```

### -DisplayBreakingChangeWarning
Controls if warning messages for breaking changes are displayed or suppressed. When enabled, a breaking change warning is displayed when executing cmdlets with breaking changes in a future release.

Expand All @@ -138,6 +154,21 @@ Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
```

### -DisplayRegionIdentified
When enabled, Azure PowerShell displays recommendations on regions which may reduce your costs.

```yaml
Type: System.Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
```

### -DisplaySurveyMessage
When enabled, you are prompted infrequently to participate in user experience surveys for Azure PowerShell.

Expand Down
8 changes: 7 additions & 1 deletion src/Accounts/Authentication/Config/ConfigInitializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,13 @@ private void RegisterConfigs(IConfigManager configManager)
true,
null,
new[] { AppliesTo.Az }));
//Use DisableErrorRecordsPersistence as opt-out for now, will replace it with EnableErrorRecordsPersistence as opt-in at next major release (November 2023)
configManager.RegisterConfig(new SimpleTypedConfig<bool>(
ConfigKeys.DisableErrorRecordsPersistence,
Resources.HelpMessageOfDisableErrorRecordsPersistence,
false,
string.Format("AzPS{0}", ConfigKeys.DisableErrorRecordsPersistence),
new[] { AppliesTo.Az }));
#if DEBUG || TESTCOVERAGE
configManager.RegisterConfig(new SimpleTypedConfig<bool>(
ConfigKeys.EnableTestCoverage,
Expand All @@ -210,7 +217,6 @@ private void RegisterConfigs(IConfigManager configManager)
ConfigKeys.TestCoverageLocation,
new[] { AppliesTo.Az }));
#endif

configManager.RegisterConfig(new EnableLoginByWamConfig());
configManager.RegisterConfig(new EnableInterceptSurveyConfig());
configManager.RegisterConfig(new DisplayBreakingChangeWarningsConfig());
Expand Down
18 changes: 18 additions & 0 deletions src/Accounts/Authentication/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/Accounts/Authentication/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -390,4 +390,10 @@
<data name="HelpMessageOfDisplayRegionIdentified" xml:space="preserve">
<value>When enabled, Azure PowerShell displays recommendations on regions which may reduce your costs.</value>
</data>
<data name="HelpMessageOfDisableErrorRecordsPersistence" xml:space="preserve">
<value>When disabled, error records will not be written to ~/.Azure/ErrorRecords. This config will be replaced by "EnableErrorRecordsPersistence" as opt-in in the next major release of Az around November 2023.</value>
</data>
<data name="HelpMessageOfEnableErrorRecordsPersistence" xml:space="preserve">
<value>When enabled, error records will be written to ~/.Azure/ErrorRecords.</value>
</data>
</root>
3 changes: 3 additions & 0 deletions src/shared/ConfigKeys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@ internal static class ConfigKeys
public const string EnableLoginByWam = "EnableLoginByWam";
public const string TestCoverageLocation = "TestCoverageLocation";
public const string DisplayRegionIdentified = "DisplayRegionIdentified";
//Use DisableErrorRecordsPersistence as opt-out for now, will replace it with EnableErrorRecordsPersistence as opt-in at next major release (November 2023)
public const string DisableErrorRecordsPersistence = "DisableErrorRecordsPersistence";
public const string EnableErrorRecordsPersistence = "EnableErrorRecordsPersistence";
}
}
36 changes: 18 additions & 18 deletions tools/Common.Netcore.Dependencies.targets
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
<ItemGroup>
<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.24"/>
<PackageReference Include="Microsoft.Rest.ClientRuntime.Azure" Version="3.3.19"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Aks" Version="1.3.82-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Authentication.Abstractions" Version="1.3.82-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Authorization" Version="1.3.82-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Common" Version="1.3.82-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Compute" Version="1.3.82-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Graph.Rbac" Version="1.3.82-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.KeyVault" Version="1.3.82-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Monitor" Version="1.3.82-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Network" Version="1.3.82-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.PolicyInsights" Version="1.3.82-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.ResourceManager" Version="1.3.82-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Storage" Version="1.3.82-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Storage.Management" Version="1.3.82-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Strategies" Version="1.3.82-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Websites" Version="1.3.82-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Common.Share" Version="1.3.82-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Aks" Version="1.3.83-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Authentication.Abstractions" Version="1.3.83-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Authorization" Version="1.3.83-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Common" Version="1.3.83-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Compute" Version="1.3.83-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Graph.Rbac" Version="1.3.83-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.KeyVault" Version="1.3.83-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Monitor" Version="1.3.83-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Network" Version="1.3.83-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.PolicyInsights" Version="1.3.83-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.ResourceManager" Version="1.3.83-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Storage" Version="1.3.83-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Storage.Management" Version="1.3.83-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Strategies" Version="1.3.83-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Websites" Version="1.3.83-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Common.Share" Version="1.3.83-preview"/>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
</ItemGroup>
<ItemGroup>
Expand All @@ -37,9 +37,9 @@
<PackageReference Include="PowerShellStandard.Library" Version="5.1.0" PrivateAssets="All" />
</ItemGroup>
<PropertyGroup>
<StorageToolsPath>$(NugetPackageRoot)\microsoft.azure.powershell.storage\1.3.82-preview\tools\</StorageToolsPath>
<StorageToolsPath>$(NugetPackageRoot)\microsoft.azure.powershell.storage\1.3.83-preview\tools\</StorageToolsPath>
</PropertyGroup>
<ItemGroup Condition="'$(OmitJsonPackage)' != 'true'">
<PackageReference Include="Newtonsoft.Json" Version="13.0.2"/>
</ItemGroup>
</Project>
</Project>