Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AzCLI Doesn´t recognize my own VNET: #30751

Open
JohnMayorga18 opened this issue Feb 4, 2025 · 1 comment
Open

AzCLI Doesn´t recognize my own VNET: #30751

JohnMayorga18 opened this issue Feb 4, 2025 · 1 comment
Assignees
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. Network az network vnet/lb/nic/dns/etc... question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone

Comments

@JohnMayorga18
Copy link

Describe the bug

I can´t attach a LoadBalancer (regional) inside to another LoadBalancer (global) instead of it the AzCLI doesn´t recognize my OWN IP ADDRESS OR VNET and I make sure that ID´s for 4 times.
Please see the following evidence in red 😤😤

Related command

#CreatingTheZone1
$Location="westus2"
$ResourceGroup="WebSiteUS"
az group create --location $Location --name $ResourceGroup
Image


#Creating the VNET
az network vnet create --name "VNET" --resource-group $ResourceGroup --location $Location --enable-encryption false --ddos-protection false --subnet-name "Predeterminado" --subnet-prefixes "10.0.0.0/24"
Image


az network vnet subnet create --name "AzureBastionSubnet" --resource-group $ResourceGroup --vnet-name "VNET" --address-prefixes "10.0.1.0/26"
Image


#Creating the NIC
az network public-ip create --name "VM" --resource-group $ResourceGroup --location $Location --version "Ipv4" --sku "Standard" --zone 1 --tier "Regional" --dns-name "mio" --dns-name-scope "NoReuse" --ddos-protection-mode "Disabled"
Image


az network nic create --name "NIC" --resource-group $ResourceGroup --vnet-name "VNET" --subnet "Predeterminado" --location $Location --private-ip-address-version "IPv4" --private-ip-address "10.0.0.4" --public-ip-address "VM"
Image


#Creating the NSG and athaching to VNET and NIC
az network nsg create --name "NSG" --resource-group $ResourceGroup --location $Location
Image


az network nsg rule create --name "AllowAnyRDPInbound" --nsg-name "NSG" --resource-group $ResourceGroup --source-port-ranges "" --destination-port-ranges 3389 --protocol "Tcp" --access "Allow" --priority 100
Image


az network nsg rule create --name "AllowAnyHTTPInbound" --nsg-name "NSG" --resource-group $ResourceGroup --source-port-ranges "
" --destination-port-ranges 80 --protocol "Tcp" --access "Allow" --priority 110
Image


az network nic update --name "NIC" --resource-group $ResourceGroup --network-security-group "NSG"
Image


az network vnet subnet update --vnet-name "VNET" --name "Predeterminado" --resource-group $ResourceGroup --network-security-group "NSG"
Image


#Creating the NAT
az network public-ip create --name "NAT" --resource-group $ResourceGroup --location $Location --version "Ipv4" --sku "Standard" --zone 1 --tier "Regional" --dns-name "mio" --dns-name-scope "NoReuse" --ddos-protection-mode "Disabled"
Image


az network nat gateway create --name "NAT" --resource-group $ResourceGroup --location $Location --public-ip-addresses "NAT" --zone 1
Image


#Creating the LoadBalancer
az network public-ip create --name "BalancerIP" --resource-group $ResourceGroup --location $Location --version "Ipv4" --sku "Standard" --zone 1 --tier "Regional" --dns-name "mio" --dns-name-scope "NoReuse" --ddos-protection-mode "Disabled"
Image


az network lb create --name "Balancer" --resource-group $ResourceGroup --location $Location --sku "Standard" --frontend-ip-name "IpConfFront" --private-ip-address-version "IPv4" --public-ip-address "BalancerIP" --vnet-name "VNET"
Image


az network lb address-pool create --address-pool-name "BalPoll" --resource-group $ResourceGroup --vnet "VNET" --lb-name "Balancer" --admin-state "Up" --sync-mode "Automatic"
Image


az network lb probe create --name "myHealthProbe" --resource-group $ResourceGroup --lb-name "Balancer" --protocol "Http" --port 80 --path "/" --interval 5
Image


az network lb rule create --resource-group $ResourceGroup --lb-name "Balancer" --name "myHTTPRule" --frontend-ip "IpConfFront" --backend-pool-name "BalPoll" --protocol "Tcp" --frontend-port 80 --backend-port 80 --load-distribution "Default" --idle-timeout 4 --enable-tcp-reset true --enable-floating-ip false --disable-outbound-snat false --probe "myHealthProbe"
Image


#Creating the VM
az vm create --name "VM" --resource-group $ResourceGroup --location $Location --zone 1 --security-type "TrustedLaunch" --image "Win2022AzureEditionCore" --priority "Regular" --size "Standard_B2s" --admin-username "JohnMayorga18" --admin-password "M@102398103419" --license-type "None" --os-disk-name "VM" --os-disk-size-gb 128 --os-disk-delete-option "Detach" --nics "NIC" --nic-delete-option "Detach" --storage-sku "Standard_LRS" --patch-mode "AutomaticByPlatform" --enable-hotpatching true
Image


#CreatingTheZone2
$Location0="japanwest"
$ResourceGroup0="WebSiteJapan"
az group create --location $Location0 --name $ResourceGroup0
Image


#Creating the VNET
az network vnet create --name "VNET" --resource-group $ResourceGroup0 --location $Location0 --enable-encryption false --ddos-protection false --subnet-name "Predeterminado" --subnet-prefixes "10.0.0.0/24"
Image


az network vnet subnet create --name "AzureBastionSubnet" --resource-group $ResourceGroup0 --vnet-name "VNET" --address-prefixes "10.0.1.0/26"
Image


#Creating the NIC
az network public-ip create --name "VM" --resource-group $ResourceGroup0 --location $Location0 --version "Ipv4" --sku "Standard" --tier "Regional" --dns-name "mio" --dns-name-scope "NoReuse" --ddos-protection-mode "Disabled"
Image


az network nic create --name "NIC" --resource-group $ResourceGroup0 --vnet-name "VNET" --subnet "Predeterminado" --location $Location0 --private-ip-address-version "IPv4" --private-ip-address "10.0.0.4" --public-ip-address "VM"
Image


#Creating the NSG and athaching to VNET and NIC
az network nsg create --name "NSG" --resource-group $ResourceGroup0 --location $Location0
Image


az network nsg rule create --name "AllowAnyRDPInbound" --nsg-name "NSG" --resource-group $ResourceGroup0 --source-port-ranges "" --destination-port-ranges 3389 --protocol "Tcp" --access "Allow" --priority 100
Image


az network nsg rule create --name "AllowAnyHTTPInbound" --nsg-name "NSG" --resource-group $ResourceGroup0 --source-port-ranges "
" --destination-port-ranges 80 --protocol "Tcp" --access "Allow" --priority 110
Image


az network nic update --name "NIC" --resource-group $ResourceGroup0 --network-security-group "NSG"
Image


az network vnet subnet update --vnet-name "VNET" --name "Predeterminado" --resource-group $ResourceGroup0 --network-security-group "NSG"
Image


#Creating the NAT
az network public-ip create --name "NAT" --resource-group $ResourceGroup0 --location $Location0 --version "Ipv4" --sku "Standard" --tier "Regional" --dns-name "mio" --dns-name-scope "NoReuse" --ddos-protection-mode "Disabled"
Image


az network nat gateway create --name "NAT" --resource-group $ResourceGroup0 --location $Location0 --public-ip-addresses "NAT"
Image


#Creating the LoadBalancer
az network public-ip create --name "BalancerIP" --resource-group $ResourceGroup0 --location $Location0 --version "Ipv4" --sku "Standard" --tier "Regional" --dns-name "mio" --dns-name-scope "NoReuse" --ddos-protection-mode "Disabled"
Image


az network lb create --name "Balancer" --resource-group $ResourceGroup0 --location $Location0 --sku "Standard" --frontend-ip-name "IpConfFront" --private-ip-address-version "IPv4" --public-ip-address "BalancerIP" --vnet-name "VNET"
Image


az network lb address-pool create --address-pool-name "BalPoll" --resource-group $ResourceGroup0 --vnet "VNET" --lb-name "Balancer" --admin-state "Up" --sync-mode "Automatic"
Image


az network lb probe create --name "myHealthProbe" --resource-group $ResourceGroup0 --lb-name "Balancer" --protocol "Http" --port 80 --path "/" --interval 5
Image


az network lb rule create --resource-group $ResourceGroup0 --lb-name "Balancer" --name "myHTTPRule" --frontend-ip "IpConfFront" --backend-pool-name "BalPoll" --protocol "Tcp" --frontend-port 80 --backend-port 80 --load-distribution "Default" --idle-timeout 4 --enable-tcp-reset true --enable-floating-ip false --disable-outbound-snat false --probe "myHealthProbe"
Image


#Creating the VM
az vm create --name "VM" --resource-group $ResourceGroup0 --location $Location0 --security-type "TrustedLaunch" --image "Win2022AzureEditionCore" --priority "Regular" --size "Standard_B2s" --admin-username "JohnMayorga18" --admin-password "M@102398103419" --license-type "None" --os-disk-name "VM" --os-disk-size-gb 128 --os-disk-delete-option "Detach" --nics "NIC" --nic-delete-option "Detach" --storage-sku "Standard_LRS" --patch-mode "AutomaticByPlatform" --enable-hotpatching true
Image


#CreatingTheHomeRegion
$HomeLocation="uksouth"
$HomeResourceGroup="HomeResource"
az group create --location $HomeLocation --name $HomeResourceGroup
Image


#CreatingHomeLoadBalancer
az network public-ip create --name "HomeBalancerIP" --resource-group $HomeResourceGroup --location $HomeLocation --version "Ipv4" --sku "Standard" --dns-name "mio" --dns-name-scope "NoReuse" --ddos-protection-mode "Disabled"
Image


az network lb create --name "Balancer" --resource-group $HomeResourceGroup --location $HomeLocation --sku "Standard" --frontend-ip-name "IpConfFront" --private-ip-address-version "IPv4" --public-ip-address "HomeBalancerIP"
Image


az network lb address-pool create --address-pool-name "BalPoll" --resource-group $HomeResourceGroup --lb-name "Balancer"
Image

Errors

az network lb address-pool address add --ip-address "20.64.169.100" --lb-name "Balancer" --name "806fb128-fe4e-4c46-9f6b-a5d2f820c14f" --pool-name "BalPoll" --resource- group $HomeResourceGroup --virtual-network "/subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/WebSiteUS/providers/Microsoft.Network/virtualNetworks/VNET"
(NotFound) Resource /subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/WEBSITEUS/providers/Microsoft.Network/virtualNetworks/VNET not found. Code: Not Found
Message: Resource /subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/WEBSITEUS/providers/Microsoft.Network/virtualNetworks/VNET not found.


Image

Issue script & Debug output

cli.knack.cli: Command arguments: ['network', 'lb', 'address-pool', 'address', 'add', '--ip-address', '20.64.169.100', '--lb-name', 'Balancer', '--name', '806fb128-fe4e-4c46-9f6b-a5d2f820c14f', '--pool-name', 'BalPoll', '--resource-group', 'HomeResource', '--virtual-network', '/subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/WebSiteUS/providers/Microsoft.Network/virtualNetworks/VNET', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
Enable VT mode.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x01AF4988>, <function OutputProducer.on_global_arguments at 0x01C33578>, <function CLIQuery.on_global_arguments at 0x01C39078>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'network': ['azure.cli.command_modules.network', 'azure.cli.command_modules.privatedns']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: network 1.041 127 501
cli.azure.cli.core: privatedns 0.045 14 60
cli.azure.cli.core: Total (2) 1.087 141 561
cli.azure.cli.core: Loaded 140 groups, 561 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : network lb address-pool address add
cli.azure.cli.core: Command table: network lb address-pool address add
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x03BD7348>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\JohnMayorga18.azure\commands\2025-02-01.18-02-37.network_lb_address-pool_address_add.10504.log'.
az_command_data_logger: command args: network lb address-pool address add --ip-address {} --lb-name {} --name {} --pool-name {} --resource-group {} --virtual-network {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x03BEFE88>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x03BEFED8>, <function register_cache_arguments..add_cache_arguments at 0x03C1EED8>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x03C1EF28>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x01C335C8>, <function CLIQuery.handle_query_parameter at 0x01C390C8>, <function register_ids_argument..parse_ids_arguments at 0x03C1EE88>]
cli.azure.cli.core.auth.persistence: build_persistence: location='C:\Users\JohnMayorga18\.azure\msal_token_cache.bin', encrypt=True
cli.azure.cli.core.auth.binary_cache: load: C:\Users\JohnMayorga18.azure\msal_http_cache.bin
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe
msal.authority: openid_config("https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/kerberos', 'tenant_region_scope': 'SA', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? True
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
cli.azure.cli.core.auth.msal_credentials: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: ebe33c38-379c-4681-8341-451031c1e27d
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/HomeResource/providers/Microsoft.Network/loadBalancers/Balancer/backendAddressPools/BalPoll?api-version=2023-04-01'
cli.azure.cli.core.sdk.policies: Request method: 'GET'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'a0a61779-e0f0-11ef-bead-c0f1422fe6f5'
cli.azure.cli.core.sdk.policies: 'CommandName': 'network lb address-pool address add'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--ip-address --lb-name --name --pool-name --resource-group --virtual-network --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.68.0 (MSI) azsdk-python-core/1.31.0 Python/3.12.8 (Windows-10-10.0.19045-SP0)'
cli.azure.cli.core.sdk.policies: 'Authorization': ''
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: This request has no body
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/HomeResource/providers/Microsoft.Network/loadBalancers/Balancer/backendAddressPools/BalPoll?api-version=2023-04-01 HTTP/1.1" 200 378
cli.azure.cli.core.sdk.policies: Response status: 200
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Content-Length': '378'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'ETag': 'W/"49526fe6-621c-4d39-9dd3-c1487d36a7c1"'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '4d19acf0-3045-49d6-9cf9-27ccb84b01cb'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '46c9702b-dff1-44ce-8382-6c217101385b'
cli.azure.cli.core.sdk.policies: 'x-ms-arm-service-request-id': '03ff4f42-027c-4c18-94dd-8f49c37b38b4'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '249'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-global-reads': '3749'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BRAZILSOUTHEAST:20250201T230237Z:46c9702b-dff1-44ce-8382-6c217101385b'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: CFB0BA315BF64539AF48898012145449 Ref B: BN1AA2051015035 Ref C: 2025-02-01T23:02:36Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Sat, 01 Feb 2025 23:02:36 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {"name":"BalPoll","id":"/subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/HomeResource/providers/Microsoft.Network/loadBalancers/Balancer/backendAddressPools/BalPoll","etag":"W/"49526fe6-621c-4d39-9dd3-c1487d36a7c1"","properties":{"provisioningState":"Succeeded","loadBalancerBackendAddresses":[]},"type":"Microsoft.Network/loadBalancers/backendAddressPools"}
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/HomeResource/providers/Microsoft.Network/loadBalancers/Balancer/backendAddressPools/BalPoll?api-version=2023-04-01'
cli.azure.cli.core.sdk.policies: Request method: 'PUT'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json'
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'Content-Length': '488'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'a0a61779-e0f0-11ef-bead-c0f1422fe6f5'
cli.azure.cli.core.sdk.policies: 'CommandName': 'network lb address-pool address add'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--ip-address --lb-name --name --pool-name --resource-group --virtual-network --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.68.0 (MSI) azsdk-python-core/1.31.0 Python/3.12.8 (Windows-10-10.0.19045-SP0)'
cli.azure.cli.core.sdk.policies: 'Authorization': '
'
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: {"id": "/subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/HomeResource/providers/Microsoft.Network/loadBalancers/Balancer/backendAddressPools/BalPoll", "name": "BalPoll", "properties": {"loadBalancerBackendAddresses": [{"name": "806fb128-fe4e-4c46-9f6b-a5d2f820c14f", "properties": {"ipAddress": "20.64.169.100", "virtualNetwork": {"id": "/subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/WebSiteUS/providers/Microsoft.Network/virtualNetworks/VNET"}}}]}}
urllib3.connectionpool: https://management.azure.com:443 "PUT /subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/HomeResource/providers/Microsoft.Network/loadBalancers/Balancer/backendAddressPools/BalPoll?api-version=2023-04-01 HTTP/1.1" 404 200
cli.azure.cli.core.sdk.policies: Response status: 404
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Content-Length': '200'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '2b525992-4440-44eb-aed4-37a78ab6848c'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '82c877b5-c19a-454f-b64f-49496453206e'
cli.azure.cli.core.sdk.policies: 'x-ms-arm-service-request-id': 'cdc5f1e8-94cc-4847-a266-b5646f35f9c8'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-writes': '199'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-global-writes': '2999'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BRAZILSOUTHEAST:20250201T230238Z:82c877b5-c19a-454f-b64f-49496453206e'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: CC5ABE72C97146639AAF0C368C606724 Ref B: BN1AA2051015035 Ref C: 2025-02-01T23:02:37Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Sat, 01 Feb 2025 23:02:37 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {"error":{"code":"NotFound","message":"Resource /subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/WEBSITEUS/providers/Microsoft.Network/virtualNetworks/VNET not found.","details":[]}}
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 666, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 734, in _run_jobs_serially
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 714, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 1076, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 1063, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_poller.py", line 108, in result
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/tracing/decorator.py", line 94, in wrapper_use_tracer
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_poller.py", line 130, in wait
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_poller.py", line 83, in _start
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure\cli\command_modules\network\aaz_compact\latest\network\lb\address_pool\address__cmds.py", line 116, in _execute_operations
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure\cli\command_modules\network\aaz_compact\latest\network\lb\address_pool\address__cmds.py", line 276, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_operation.py", line 324, in on_error
azure.core.exceptions.ResourceNotFoundError: (NotFound) Resource /subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/WEBSITEUS/providers/Microsoft.Network/virtualNetworks/VNET not found.
Code: NotFound
Message: Resource /subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/WEBSITEUS/providers/Microsoft.Network/virtualNetworks/VNET not found.

cli.azure.cli.core.azclierror: (NotFound) Resource /subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/WEBSITEUS/providers/Microsoft.Network/virtualNetworks/VNET not found.
Code: NotFound
Message: Resource /subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/WEBSITEUS/providers/Microsoft.Network/virtualNetworks/VNET not found.
az_command_data_logger: (NotFound) Resource /subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/WEBSITEUS/providers/Microsoft.Network/virtualNetworks/VNET not found.
Code: NotFound
Message: Resource /subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/WEBSITEUS/providers/Microsoft.Network/virtualNetworks/VNET not found.
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x03BD7488>]
az_command_data_logger: exit code: 3
cli.main: Command ran in 4.875 seconds (init: 0.469, invoke: 4.406)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 4250 in cache file under C:\Users\JohnMayorga18.azure\telemetry\20250201180240876
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry_init_.pyc C:\Users\JohnMayorga18.azure C:\Users\JohnMayorga18.azure\telemetry\20250201180240876"
telemetry.process: Return from creating process 14180
telemetry.main: Finish creating telemetry upload process.

Expected behavior

The Expected behavior is attach the lasted LoadBalancers created (WestUS2 and JapanWest) to the "HomeLoadBalancer" or "GlobalLoadBalancer" (UkSouth) with the goal to develop a strong global redundance application.
Image

Environment Summary

azure-cli 2.68.0

core 2.68.0
telemetry 1.1.0

Dependencies:
msal 1.31.1
azure-mgmt-resource 23.1.1

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\JohnMayorga18.azure\cliextensions'

Python (Windows) 3.12.8 (tags/v3.12.8:2dc476b, Dec 3 2024, 19:07:15) [MSC v.1942 32 bit (Intel)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

According to MsDocumentation is possible create a global load balancer with the purpose to create a robust site redundance and I run the last related commands and as you can see I can create that home balancer and works perfectly:
Image
Image
Image


So, I don´t see any documentation about how to create a global LoadBalancer in MsDocs using AzCLI and I don´t see the "Tier: Global" tag in the az command "network lb create" so I tried to use command "update LoadBalncerIPConffiguration" with any result because I can´t attach a virtual network from the other regions and I get the error that says "I must to reference to VNET if i have been mentioned an IP" and it´s frustrating because i tried the command "lb address-pool update" and this is impossible because the command "az network lb address-pool create" doesn´t me allow to add a new name for that address pool using only AzCLI.
Finaly this is the goal if I try to create that HomeLoadBalancer via AzurePortal.
Image


Thnks a lt fr yr support 🔌🔌

@JohnMayorga18 JohnMayorga18 added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Feb 4, 2025
@yonzhan
Copy link
Collaborator

yonzhan commented Feb 4, 2025

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Network az network vnet/lb/nic/dns/etc... labels Feb 4, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Compute az vm/vmss/image/disk/snapshot labels Feb 4, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group label Feb 4, 2025
@yonzhan yonzhan removed the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Feb 4, 2025
@yonzhan yonzhan added this to the Backlog milestone Feb 4, 2025
@yonzhan yonzhan removed the Compute az vm/vmss/image/disk/snapshot label Feb 4, 2025
@yonzhan yonzhan removed the ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. Network az network vnet/lb/nic/dns/etc... question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

5 participants