Skip to content

Add default empty guid to fix an error on develop - #264

Closed
Michael Smith (Exolun) wants to merge 2 commits into
microsoft:developfrom
Exolun:user/mismit/empty_default_sub
Closed

Add default empty guid to fix an error on develop#264
Michael Smith (Exolun) wants to merge 2 commits into
microsoft:developfrom
Exolun:user/mismit/empty_default_sub

Conversation

@Exolun

Copy link
Copy Markdown
Contributor

One of our users was testing on develop and seeing an error with no AzureSubscription provided, this is a fix so it won't error out.

[int]$SearchDepth = 3,
[Switch]$VerifyOnly,
[int]$PATLifetime = 7,
[guid]$AzureSubscription

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting - I tried this specifically before suggesting you convert to [guid]. Let me try some things.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed - the issue is that you're assuming that $AzureSubscription is valid and then passing it into Update-PackageAuthConfig which ends up throwing the error. I have fixes for that an others about to go up.

@jwittner Josh Wittner (jwittner) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will follow up with a set of changes I have to fix this and other issues and we can discuss.

[int]$SearchDepth = 3,
[Switch]$VerifyOnly,
[int]$PATLifetime = 7,
[guid]$AzureSubscription

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed - the issue is that you're assuming that $AzureSubscription is valid and then passing it into Update-PackageAuthConfig which ends up throwing the error. I have fixes for that an others about to go up.

@jwittner

Copy link
Copy Markdown
Member

#265 addresses the problem with the guid as well as several others I found along the way. Would be nice to review in a call.

@jwittner

Copy link
Copy Markdown
Member

Closing as this will be fixed by my PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants