Skip to content

Commit b7c23f3

Browse files
authored
Fix access error when subscripiton has no Tags property (#15444)
* Fix access error when subscripiton has no Tags property * Bump version for Az 6.2.1
1 parent ee3ffe1 commit b7c23f3

File tree

131 files changed

+173
-276
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+173
-276
lines changed

ChangeLog.md

Lines changed: 4 additions & 0 deletions

src/ADDomainServices/Az.ADDomainServices.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2'
5151
# ProcessorArchitecture = ''
5252

5353
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.5.0'; })
54+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.5.1'; })
5555

5656
# Assemblies that must be loaded prior to importing this module
5757
RequiredAssemblies = './bin/Az.ADDomainServices.private.dll'

src/Accounts/Accounts/Az.Accounts.psd1

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 7/2/2021
6+
# Generated on: 7/9/2021
77
#
88

99
@{
@@ -12,7 +12,7 @@
1212
# RootModule = ''
1313

1414
# Version number of this module.
15-
ModuleVersion = '2.5.0'
15+
ModuleVersion = '2.5.1'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Core', 'Desktop'
@@ -145,11 +145,7 @@ PrivateData = @{
145145
# IconUri = ''
146146

147147
# ReleaseNotes of this module
148-
ReleaseNotes = '* Added Tags, AuthorizationSource to PSAzureSusbscripiton and added TenantType, DefaultDomain, TenantBrandingLogoUrl, CountryCode to PSAzureTenant [#15220]
149-
* Upgraded subscription client to 2021-01-01 [#15220]
150-
* Removed Interactive mode check in common lib
151-
* Added endpoint of OperationalInsights to environment AzureChinaCloud [#15305]
152-
* Printed auto generated modules'' default logs to verbose stream'
148+
ReleaseNotes = '* Fixed access error when subscripiton has no ''Tags'' property [#15425].'
153149

154150
# Prerelease string of this module
155151
# Prerelease = ''

src/Accounts/Accounts/ChangeLog.md

Lines changed: 3 additions & 0 deletions

src/Accounts/Accounts/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
// You can specify all the values or you can default the Build and Revision Numbers
4444
// by using the '*' as shown below:
4545

46-
[assembly: AssemblyVersion("2.5.0")]
47-
[assembly: AssemblyFileVersion("2.5.0")]
46+
[assembly: AssemblyVersion("2.5.1")]
47+
[assembly: AssemblyFileVersion("2.5.1")]
4848
#if !SIGN
4949
[assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.Accounts.Test")]
5050
#endif

src/Accounts/Authentication.ResourceManager/Models/PSAzureSubscription.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,11 @@ public Dictionary<string, string> Tags
223223
{
224224
get
225225
{
226-
return this.GetTags();
226+
if (!string.IsNullOrEmpty(this.GetProperty(AzureSubscription.Property.Tags)))
227+
{
228+
return this.GetTags();
229+
}
230+
return null;
227231
}
228232
}
229233
}

src/Accounts/Authentication/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@
4343
// You can specify all the values or you can default the Build and Revision Numbers
4444
// by using the '*' as shown below:
4545
// [assembly: AssemblyVersion("1.0.*")]
46-
[assembly: AssemblyVersion("2.5.0")]
47-
[assembly: AssemblyFileVersion("2.5.0")]
46+
[assembly: AssemblyVersion("2.5.1")]
47+
[assembly: AssemblyFileVersion("2.5.1")]

src/Accounts/Authenticators/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@
4848
// You can specify all the values or you can default the Build and Revision Numbers
4949
// by using the '*' as shown below:
5050
// [assembly: AssemblyVersion("1.0.*")]
51-
[assembly: AssemblyVersion("2.5.0")]
52-
[assembly: AssemblyFileVersion("2.5.0")]
51+
[assembly: AssemblyVersion("2.5.1")]
52+
[assembly: AssemblyFileVersion("2.5.1")]

src/Advisor/Advisor/Az.Advisor.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2'
5151
# ProcessorArchitecture = ''
5252

5353
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.5.0'; })
54+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.5.1'; })
5555

5656
# Assemblies that must be loaded prior to importing this module
5757
RequiredAssemblies = 'Microsoft.Azure.Management.Advisor.dll'

src/Aks/Aks/Az.Aks.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2'
5353
# ProcessorArchitecture = ''
5454

5555
# Modules that must be imported into the global environment prior to importing this module
56-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.8'; })
56+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.5.1'; })
5757

5858
# Assemblies that must be loaded prior to importing this module
5959
RequiredAssemblies = 'YamlDotNet.dll', 'AutoMapper.dll',

0 commit comments

Comments
 (0)