Giter VIP home page Giter VIP logo

Comments (3)

andyt530 avatar andyt530 commented on July 28, 2024

Could you post the debug output please:
./az2tf.sh -s yoursub -d yes -v yes -r virtual_network_gateway -g resourcegroupname

from py-az2tf.

asubmani avatar asubmani commented on July 28, 2024

Could you post the debug output please:
./az2tf.sh -s yoursub -d yes -v yes -r virtual_network_gateway -g resourcegroupname

Here it is

Subscription ID = xxxxxxxx-yyyyyy-hghgh-qqwqer
Azure Resource Group Filter = myResourceGroup
Terraform Resource Type Filter = virtual_network_gateway
Get Subscription Policies & RBAC = no
Extract Key Vault Secrets to .tf files (insecure) = no
Fast Forward = no
Validate Only = yes
Debug = no
 
python2.7 ../../scripts/az2tf.py -s xxxxxxxx-yyyyyy-hghgh-qqwqer -g myResourceGroup -r virtual_network_gateway -d yes 2>&1 | tee -a import.log
resource group=myResourceGroup
resource filter=virtual_network_gateway
Debug=True
Get Access Token from CLI
Subscription: xxxxxxxx-yyyyyy-hghgh-qqwqer
Found subscription xxxxxxxx-yyyyyy-hghgh-qqwqer proceeding ...
Found Resource GroupmyResourceGroup
# azurerm_virtual_network_gateway 3
{
    "name": "zz-gw-Resource-EastUS2",
    "id": "/subscriptions/xxxxxxxx-yyyyyy-hghgh-qqwqer/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworkGateways/zz-gw-Resource-EastUS2",
    "etag": "W/\"9c8e6845-d88b-4dd1-af96-708c3d55e438\"",
    "location": "eastus2",
    "type": "Microsoft.Network/virtualNetworkGateways",
    "properties": {
        "vpnClientConfiguration": {
            "vpnClientRootCertificates": [],
            "vpnClientIpsecPolicies": [],
            "vpnClientProtocols": [],
            "vpnClientRevokedCertificates": []
        },
        "vpnType": "RouteBased",
        "gatewayType": "ExpressRoute",
        "activeActive": false,
        "enableBgp": false,
        "provisioningState": "Succeeded",
        "vpnGatewayGeneration": "None",
        "ipConfigurations": [
            {
                "properties": {
                    "subnet": {
                        "id": "/subscriptions/xxxxxxxx-yyyyyy-hghgh-qqwqer/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/Resource-EastUS2/subnets/GatewaySubnet"
                    },
                    "privateIPAllocationMethod": "Dynamic",
                    "publicIPAddress": {
                        "id": "/subscriptions/xxxxxxxx-yyyyyy-hghgh-qqwqer/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/zz-gw-IP-Resource-EastUS2"
                    },
                    "provisioningState": "Succeeded"
                },
                "etag": "W/\"9c8e6845-d88b-4dd1-af96-708c3d55e438\"",
                "type": "Microsoft.Network/virtualNetworkGateways/ipConfigurations",
                "name": "zz-gw-IPConfig-Resource-EastUS2",
                "id": "/subscriptions/xxxxxxxx-yyyyyy-hghgh-qqwqer/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworkGateways/zz-gw-Resource-EastUS2/ipConfigurations/zz-gw-IPConfig-Resource-EastUS2"
            }
        ],
        "resourceGuid": "447f57f0-e5bd-4b1e-ae16-2716a32a542e"
    }
}
Traceback (most recent call last):
  File "../../scripts/az2tf.py", line 337, in <module>
    azurerm_virtual_network_gateway.azurerm_virtual_network_gateway(crf,cde,crg,headers,requests,sub,json,az2tfmess)
  File "/mnt/c/temp/github/py-az2tf-master/scripts/azurerm_virtual_network_gateway.py", line 51, in azurerm_virtual_network_gateway
    sku=azr[i]["properties"]["sku"]["name"]
KeyError: 'sku'
KeyError: 'sku'
Error in az2tf.py

from py-az2tf.

andyt530 avatar andyt530 commented on July 28, 2024

posted workaround

from py-az2tf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.