diff --git a/src/Resources/Resources/ActiveDirectory/Cmdlets/UpdateAzureADApplicationCommand.cs b/src/Resources/Resources/ActiveDirectory/Cmdlets/UpdateAzureADApplicationCommand.cs index b52aa79cb4af..a73241fc6c68 100644 --- a/src/Resources/Resources/ActiveDirectory/Cmdlets/UpdateAzureADApplicationCommand.cs +++ b/src/Resources/Resources/ActiveDirectory/Cmdlets/UpdateAzureADApplicationCommand.cs @@ -102,7 +102,7 @@ public override void ExecuteCmdlet() Homepage = HomePage, IdentifierUris = IdentifierUri, ReplyUrls = ReplyUrl, - AvailableToOtherTenants = AvailableToOtherTenants + AvailableToOtherTenants = this.IsParameterBound(c => c.AvailableToOtherTenants) ? AvailableToOtherTenants : (bool?)null }; if (ShouldProcess(target: ObjectId, action: string.Format("Updating an application with object id '{0}'", ObjectId))) diff --git a/src/Resources/Resources/ChangeLog.md b/src/Resources/Resources/ChangeLog.md index b25c24dc7fdf..515ba507cf5d 100644 --- a/src/Resources/Resources/ChangeLog.md +++ b/src/Resources/Resources/ChangeLog.md @@ -23,6 +23,7 @@ - Add new cmdlets for managing deployments at tenant scope: *-AzTenantDeployment - Refactor *-AzDeployment cmdlets to work specificly at subscription scope - Created aliases *-AzSubscriptionDeployment for *-AzDeployment cmdlets +* Fix `Update-AzADApplication` when parameter `AvailableToOtherTenants` is not set ## Version 1.10.0 * Make -Scope optional in *-AzPolicyAssignment cmdlets with default to context subscription