Skip to content

Commit a21a378

Browse files
committed
Remove extra validation of the sku names
1 parent 8650035 commit a21a378

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)