Skip to content

Commit e18fd1c

Browse files
author
maddieclayton
authored
Merge pull request #5165 from selasagi/pbi-dedicated
Remove extra validation of the sku names on create new capacity
2 parents 22460ed + a21a378 commit e18fd1c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/ResourceManager/PowerBIEmbedded/Commands.PowerBI/Commands/NewAzureRmPowerBIEmbeddedCapacity.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,6 @@ public override void ExecuteCmdlet()
105105
}
106106
}
107107

108-
var availableSkus = PowerBIClient.ListSkusForNew();
109-
if (!availableSkus.Value.Any(v => v.Name == Sku))
110-
{
111-
throw new InvalidOperationException(string.Format(Resources.InvalidSku, Sku, String.Join(",", availableSkus.Value.Select(v => v.Name))));
112-
}
113-
114108
var createdCapacity = PowerBIClient.CreateOrUpdateCapacity(ResourceGroupName, Name, Location, Sku, Tag, Administrator, null);
115109
WriteObject(createdCapacity);
116110
}

0 commit comments

Comments
 (0)