Closed MPereira95 closed 2 years ago
Label prediction was below confidence level 0.6
for Model:ServiceLabels
: 'Service Bus:0.103939325,Event Hubs:0.07751969,Cosmos:0.057027698'
Thanks for the feedback, we’ll investigate asap.
@MPereira95 Thanks for your feedback, after my investigation, I noticed that the sku parameter in the example model you gave needs to be changed to VpnGw2, and the location parameter needs to be consistent with the location of resource groups.
Also I found a tutorial to create a virtual gateway, please go to the link: https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-point-to-site-resource-manager-portal#add
@Wzb123456789 I changed the SKU but the VPN client configuration is stil not there. I don't want to do this manually trough the portal. I want this to be an automatic process, that's why i define the address prefix, the root certificate and the vpn protocol but still the information is not reaching Azure because when I open the JSON View of the virtual gateway there is no reference to vpn_client_configuration. The location for all my resources is westeurope so that is not the issue.
@MPereira95 For more complex parameters, we prefer to use model to pass parameters. The following is the parameter model that I have tried to successfully create a virtual gateway.
vn_para = VirtualNetworkGateway(
ip_configurations=[VirtualNetworkGatewayIPConfiguration(
private_ip_allocation_method="Dynamic",
subnet=SubResource(
id="/subscriptions/" + SUBSCRIPTION_ID + "/resourceGroups/" + GROUP_NAME + "/providers/Microsoft.Network/virtualNetworks/" + VIRTUAL_NETWORK_NAME + "/subnets/" + SUBNET + ""),
public_ip_address=SubResource(
id="/subscriptions/" + SUBSCRIPTION_ID + "/resourceGroups/" + GROUP_NAME + "/providers/Microsoft.Network/publicIPAddresses/" + PUBLIC_IP_ADDRESS_NAME + ""),
name=IP_CONFIGURATION_NAME
)],
gateway_type="Vpn",
vpn_type="RouteBased",
enable_bgp=False,
active=False,
enable_dns_forwarding=False,
sku=VirtualNetworkGatewaySku(name="VpnGw2", tier="VpnGw2"),
vpn_client_configuration=VpnClientConfiguration(
vpn_client_address_pool=AddressSpace(address_prefixes=["192.168.0.0/24"]),
vpn_authentication_types=['Certificate'],
vpn_client_root_certificates=[VpnClientRootCertificate(name="testCA", public_cert_data=ROOT_CERT)],
vpn_client_protocols=["OpenVPN"],
),
vpn_gateway_generation="Generation2",
location="westus"
)
@Wzb123456789 Thank you! This solved my problem
Hello, i'm trying to build a virtual network gateway with the vpn_client_configuration parameters.
Here's an example of my code:
It creates the virtual netwok gateway with all of the information except the client configuration!
I couldn't find any samples so i'm not sure if the issue is the syntax, but i followed this document:
Thanks for the help!