diff --git a/src/Explorer/Tabs/TerminalTab.tsx b/src/Explorer/Tabs/TerminalTab.tsx index 65a4e8680..aba2b1680 100644 --- a/src/Explorer/Tabs/TerminalTab.tsx +++ b/src/Explorer/Tabs/TerminalTab.tsx @@ -46,16 +46,6 @@ export default class TerminalTab extends TabsBase { this.isAllPublicIPAddressesEnabled, ); } - - if (options.kind === ViewModels.TerminalKind.VCoreMongo) { - checkFirewallRules( - "2023-03-01-preview", - (rule) => - rule.name.startsWith("AllowAllAzureServicesAndResourcesWithinAzureIps") || - (rule.properties.startIpAddress === "0.0.0.0" && rule.properties.endIpAddress === "255.255.255.255"), - this.isAllPublicIPAddressesEnabled, - ); - } } public getContainer(): Explorer { diff --git a/src/Explorer/Tabs/VCoreMongoQuickstartTab.tsx b/src/Explorer/Tabs/VCoreMongoQuickstartTab.tsx index 2bbdb8072..296910214 100644 --- a/src/Explorer/Tabs/VCoreMongoQuickstartTab.tsx +++ b/src/Explorer/Tabs/VCoreMongoQuickstartTab.tsx @@ -1,49 +1,24 @@ import { Stack } from "@fluentui/react"; -import { MessageTypes } from "Contracts/ExplorerContracts"; import { TerminalKind } from "Contracts/ViewModels"; import { CloudShellTerminalComponent } from "Explorer/Tabs/CloudShellTab/CloudShellTerminalComponent"; -import { QuickstartFirewallNotification } from "Explorer/Quickstart/QuickstartFirewallNotification"; import { VcoreMongoQuickstartGuide } from "Explorer/Quickstart/VCoreMongoQuickstartGuide"; -import { checkFirewallRules } from "Explorer/Tabs/Shared/CheckFirewallRules"; import { userContext } from "UserContext"; -import React, { useEffect, useState } from "react"; -import FirewallRuleScreenshot from "../../../images/vcoreMongoFirewallRule.png"; +import React from "react"; export const VcoreMongoQuickstartTab: React.FC = (): JSX.Element => { - const [isAllPublicIPAddressEnabled, setIsAllPublicIPAddressEnabled] = useState(true); - - useEffect(() => { - checkFirewallRules( - "2023-03-01-preview", - (rule) => - rule.name.startsWith("AllowAllAzureServicesAndResourcesWithinAzureIps") || - (rule.properties.startIpAddress === "0.0.0.0" && rule.properties.endIpAddress === "255.255.255.255"), - setIsAllPublicIPAddressEnabled, - ); - }); - return ( - {!isAllPublicIPAddressEnabled && ( - - )} - {isAllPublicIPAddressEnabled && ( - - )} + );