Skip to content

Commit 2ecd948

Browse files
committed
[Insights] Fix subscriptionid in logprofile id for add-azurermlogprofile command
1 parent 8c15b9c commit 2ecd948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ResourceManager/Insights/Commands.Insights/LogProfiles/AddAzureRmLogProfileCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected override void ProcessRecordInternal()
105105

106106
PSLogProfile psResult = new PSLogProfile(
107107
"/subscriptions/{0}/providers/microsoft.insights/logprofiles/{1}"
108-
.FormatInvariant(DefaultContext.Subscription, this.Name),
108+
.FormatInvariant(DefaultContext.Subscription.Id.ToString(), this.Name),
109109
this.Name,
110110
putParameters.Properties);
111111
WriteObject(psResult);

0 commit comments

Comments
 (0)