Skip to content
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

Format-M365DSCTelemetryParameters: Variable ApplicationId is never assigned. #2237

Closed
andikrueger opened this issue Aug 29, 2022 · 0 comments · Fixed by #2238 or #2245
Closed

Format-M365DSCTelemetryParameters: Variable ApplicationId is never assigned. #2237

andikrueger opened this issue Aug 29, 2022 · 0 comments · Fixed by #2238 or #2245
Labels
Bug Something isn't working Core Engine

Comments

@andikrueger
Copy link
Collaborator

When running Export-M365DSCConfiguration with Application, there are some hidden errors thrown. These errors are due to lack of an assigned variable:

function Format-M365DSCTelemetryParameters
{
[CmdletBinding()]
[OutputType([System.Collections.Generic.Dictionary[[String], [String]]])]
param(
[parameter(Mandatory = $true)]
[System.String]
$ResourceName,
[parameter(Mandatory = $true)]
[System.String]
$CommandName,
[parameter(Mandatory = $true)]
[System.Collections.Hashtable]
$Parameters
)
$data = [System.Collections.Generic.Dictionary[[String], [String]]]::new()
try
{
$data.Add("Resource", $ResourceName)
$data.Add("Method", $CommandName)
if (-not $ApplicationId)

$ApplicationId is not assigned and this needs to be changed to $Parameters.ApplicationId

@andikrueger andikrueger added Bug Something isn't working Core Engine labels Aug 29, 2022
andikrueger added a commit to andikrueger/Microsoft365DSC that referenced this issue Aug 29, 2022
@ykuijs ykuijs linked a pull request Aug 30, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Core Engine
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant