Skip to content

azureO365CheckNSGOutboundRules

CheckNetworkSecurityGroupOutboundRules validates that the given NSG allows the required egress traffic for an AKS.

Arguments

Argument Type Description
tenantId (required) String! Azure tenant ID.
subscriptionId (required) UUID! Azure subscription ID.
resourceGroupName (required) String! Azure resource group name.
vnet_name (required) String! Azure virtual network name.
subnet_name (required) String! Azure subnet name.

Returns

AzureNetworkSecurityGroupResp!

Sample

query AzureO365CheckNSGOutboundRules($tenantId: String!, $subscriptionId: UUID!, $resourceGroupName: String!, $vnet_name: String!, $subnet_name: String!) {
  azureO365CheckNSGOutboundRules(
    tenantId: $tenantId
    subscriptionId: $subscriptionId
    resourceGroupName: $resourceGroupName
    vnet_name: $vnet_name
    subnet_name: $subnet_name
  ) {
    reason
    rulesStatus
  }
}
{
  "tenantId": "example-string",
  "subscriptionId": "00000000-0000-0000-0000-000000000000",
  "resourceGroupName": "example-string",
  "vnet_name": "example-string",
  "subnet_name": "example-string"
}
{
  "data": {
    "azureO365CheckNSGOutboundRules": {
      "reason": "example-string",
      "rulesStatus": "BLOCKING"
    }
  }
}