File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Utils/azuretools-core/src/com/microsoft/azuretools/core/mvp/model Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,19 @@ public List<PricingTier> listPricingTier() throws IllegalAccessException {
165165 ret .add (pt );
166166 }
167167 }
168- return ret ;
168+ return correctPricingTiers (ret );
169+ }
170+
171+ // workaround for SDK not updated the PREMIUM pricing tiers to latest ones
172+ // https://github.com/Azure/azure-libraries-for-java/issues/660
173+ private List <PricingTier > correctPricingTiers (final List <PricingTier > pricingTiers ) {
174+ pricingTiers .remove (PricingTier .PREMIUM_P1 );
175+ pricingTiers .remove (PricingTier .PREMIUM_P2 );
176+ pricingTiers .remove (PricingTier .PREMIUM_P3 );
177+ pricingTiers .add (new PricingTier ("Premium" , "P1V2" ));
178+ pricingTiers .add (new PricingTier ("Premium" , "P2V2" ));
179+ pricingTiers .add (new PricingTier ("Premium" , "P3V2" ));
180+ return pricingTiers ;
169181 }
170182
171183 private static final class SingletonHolder {
You can’t perform that action at this time.
0 commit comments