Azure / azure-spring-apps-landing-zone-accelerator

The Azure Spring Apps landing zone accelerator is an open-source collection of architectural guidance and reference implementation to accelerate deployment of Azure Spring Apps at scale.
MIT License
80 stars 76 forks source link

Network route table errors out #54

Closed selvasingh closed 3 years ago

selvasingh commented 3 years ago
ArgumentUsageError: argument --route-table-name: expected one argument
Try this: 'az network route-table route create -g spring-o76hh6c1q6ugt-apps-rg --route-table-name <MyRouteTable> -n default --next-hop-type VirtualAppliance --address-prefix 0.0.0.0/0 --next-hop-ip-address 10.9.0.4'
Still stuck? Run 'az network route-table route create --help' to view all commands or go to 'https://aka.ms/cli_ref' to learn more
This command is implicitly deprecated because command group 'network route-table' is deprecated and will be removed in a future release. Use 'network vhub route-table' instead.
ArgumentUsageError: argument --route-table-name: expected one argument
Try this: 'az network route-table route create -g spring-o76hh6c1q6ugt-runtime-rg --route-table-name <MyRouteTable> -n default --next-hop-type VirtualAppliance --address-prefix 0.0.0.0/0 --next-hop-ip-address 10.9.0.4'
Still stuck? Run 'az network route-table route create --help' to view all commands or go to 'https://aka.ms/cli_ref' to learn more
{- Finished ..
  "etag": "20cbe94d-cf15-4f6a-870f-e9b00f5770a8",
  "id": "/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/resourceGroups/sc-corp-rg/providers/Microsoft.Network/privateDnsZones/private.azuremicroservices.io",
  "location": "global",
  "maxNumberOfRecordSets": 25000,
  "maxNumberOfVirtualNetworkLinks": 1000,
  "maxNumberOfVirtualNetworkLinksWithRegistration": 100,
  "name": "private.azuremicroservices.io",
  "numberOfRecordSets": 1,
  "numberOfVirtualNetworkLinks": 0,
  "numberOfVirtualNetworkLinksWithRegistration": 0,
  "provisioningState": "Succeeded",
  "resourceGroup": "sc-corp-rg",
  "tags": null,
  "type": "Microsoft.Network/privateDnsZones"
}
{- Finished ..
  "etag": "\"5f003339-0000-0100-0000-600620df0000\"",
  "id": "/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/resourceGroups/sc-corp-rg/providers/Microsoft.Network/privateDnsZones/private.azuremicroservices.io/virtualNetworkLinks/link-to-vnet-spoke",
  "location": "global",
  "name": "link-to-vnet-spoke",
  "provisioningState": "Succeeded",
  "registrationEnabled": false,
  "resourceGroup": "sc-corp-rg",
  "tags": null,
  "type": "Microsoft.Network/privateDnsZones/virtualNetworkLinks",
  "virtualNetwork": {
    "id": "/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/resourceGroups/sc-corp-rg/providers/Microsoft.Network/virtualNetworks/vnet-spoke",
    "resourceGroup": "sc-corp-rg"
  },
  "virtualNetworkLinkState": "Completed"
}
{- Finished ..
  "etag": "\"5f00a33b-0000-0100-0000-600621070000\"",
  "id": "/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/resourceGroups/sc-corp-rg/providers/Microsoft.Network/privateDnsZones/private.azuremicroservices.io/virtualNetworkLinks/link-to-vnet-hub",
  "location": "global",
  "name": "link-to-vnet-hub",
  "provisioningState": "Succeeded",
  "registrationEnabled": false,
  "resourceGroup": "sc-corp-rg",
  "tags": null,
  "type": "Microsoft.Network/privateDnsZones/virtualNetworkLinks",
  "virtualNetwork": {
    "id": "/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/resourceGroups/sc-corp-rg/providers/Microsoft.Network/virtualNetworks/vnet-hub",
    "resourceGroup": "sc-corp-rg"
  },
  "virtualNetworkLinkState": "Completed"
}
{
  "aRecords": [
    {
      "ipv4Address": "10.8.0.6"
    }
  ],
  "etag": "7b7afc08-4bda-4e3d-8ef6-d62b6ed118e4",
  "fqdn": "*.private.azuremicroservices.io.",
  "id": "/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/resourceGroups/sc-corp-rg/providers/Microsoft.Network/privateDnsZones/private.azuremicroservices.io/A/*",
  "isAutoRegistered": false,
  "metadata": null,
  "name": "*",
  "resourceGroup": "sc-corp-rg",
  "ttl": 3600,
  "type": "Microsoft.Network/privateDnsZones/A"
}
djr1991 commented 3 years ago

Did you try to deploy the application in East US 2? I will change the default location to be east us so it works but anyone who chooses East US 2 will get this error. I put in the readme that the route will need to be added manually if East US 2 is the chosen region

selvasingh commented 3 years ago

Okay, let's change the default region and more importantly, shall we ask for the region using a prompt?

djr1991 commented 3 years ago

Yeah I can do that, it’s an easy enough change. Will work on it this week

dapolloxp commented 3 years ago

I also changed the default for terraform to East US. This is a problem with East US 2 that needs to be fixed. We will document as a known issue in the deployment docs.