/// <summary> /// Get instance sku name based on edition /// Edition | SkuName /// GeneralPurpose | GP /// BusinessCritical | BC /// </summary> /// <param name="tier">Azure Sql database edition</param> /// <returns>The sku name</returns> public static string GetInstanceSkuPrefix(string tier) { if (string.IsNullOrWhiteSpace(tier)) { return(null); } return(SqlSkuUtils.GetVcoreSkuPrefix(tier) ?? "Unknown"); }
/// <summary> /// Get elastic pool sku name based on tier /// Edition | SkuName /// GeneralPurpose | GP /// BusinessCritical | BC /// Standard | StandardPool /// Basic | BasicPool /// Premium | PremiumPool /// </summary> /// <param name="tier">Azure Sql elastic pool edition</param> /// <returns>The sku name</returns> public static string GetPoolSkuName(string tier) { if (string.IsNullOrWhiteSpace(tier)) { return(null); } return(SqlSkuUtils.GetVcoreSkuPrefix(tier) ?? string.Format("{0}Pool", tier)); }
/// <summary> /// Get database sku name based on edition /// Edition | SkuName /// GeneralPurpose | GP /// BusinessCritical | BC /// Hyperscale | HS /// Standard | Standard /// Basic | Basic /// Premium | Premium /// /// Also adds _S in the end of SkuName in case if it is Serverless /// </summary> /// <param name="tier">Azure Sql database edition</param> /// <param name="isServerless">If sku should be serverless type</param> /// <returns>The sku name</returns> public static string GetDatabaseSkuName(string tier, bool isServerless = false) { if (string.IsNullOrWhiteSpace(tier)) { return(null); } return((SqlSkuUtils.GetVcoreSkuPrefix(tier) ?? tier) + (isServerless ? "_S" : "")); }
/// <summary> /// Get database sku name based on edition /// Edition | SkuName /// GeneralPurpose | GP /// BusinessCritical | BC /// Hyperscale | HS /// Standard | Standard /// Basic | Basic /// Premium | Premium /// </summary> /// <param name="tier">Azure Sql database edition</param> /// <returns>The sku name</returns> public static string GetDatabaseSkuName(string tier) { if (string.IsNullOrWhiteSpace(tier)) { return(null); } return(SqlSkuUtils.GetVcoreSkuPrefix(tier) ?? tier); }