-
Notifications
You must be signed in to change notification settings - Fork 567
docs(azure): fix private cluster NAT subnet setup instructions #9209
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
Closed
+34
−26
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: openshift/hypershift
Length of output: 18790
🏁 Script executed:
Repository: openshift/hypershift
Length of output: 24005
🏁 Script executed:
Repository: openshift/hypershift
Length of output: 50377
🌐 Web query:
Azure CLI az vm list query order resource group network profile networkInterfaces documented workflow select VM name💡 Result:
To list Azure Virtual Machines (VMs) and include their associated network interface IDs using the Azure CLI, you can use the az vm list command combined with a JMESPath query [1][2]. Note that the basic az vm list command does not return detailed network profile information by default; you must use the --show-details flag to retrieve properties like network interfaces [3][2]. The following command retrieves a list of VMs, displaying their name, resource group, and the IDs of all attached network interfaces: az vm list --show-details --query "[].{VMName:name, ResourceGroup:resourceGroup, NetworkInterfaces:networkProfile.networkInterfaces[].id}" --output table Key components of this workflow: 1. --show-details: This flag is essential as it instructs the Azure CLI to fetch extended properties, including the networkProfile, which are not returned in the standard summary output [3][2]. 2. --query: The JMESPath query "[].{VMName:name, ResourceGroup:resourceGroup, NetworkInterfaces:networkProfile.networkInterfaces[].id}" performs the following actions: - [].: Flattens the array of VM objects so you can access individual VM properties [1][4]. - {VMName:name,...}: Creates a custom JSON object for each VM containing only the fields you requested [1][4]. - networkProfile.networkInterfaces[].id: Accesses the nested networkInterfaces array, flattens it, and extracts the unique ID for each NIC [2]. 3. Sorting/Ordering: The Azure CLI does not natively support an order-by parameter within the CLI command itself [1]. To order the output, you can pipe the result to standard command-line tools like sort. For example, to sort by the VM name: az vm list --show-details --query "[].{VMName:name, ResourceGroup:resourceGroup, NetworkInterfaces:networkProfile.networkInterfaces[].id}" --output tsv | sort -k1 If you require more granular information about specific network interfaces, you can use the retrieved IDs with the az network nic show command [2][5].
Citations:
🏁 Script executed:
Repository: openshift/hypershift
Length of output: 50379
🌐 Web query:
site:learn.microsoft.com/en-us/cli/azure/vm az vm list --show-details networkProfile networkInterfaces💡 Result:
The command
az vm list --show-details networkProfile networkInterfacesis not a valid Azure CLI command syntax [1]. Theaz vm listcommand does not supportnetworkProfileornetworkInterfacesas positional arguments or flags [1]. Additionally, whileaz vm listhas a--show-detailsparameter (which provides more comprehensive information about VMs, such as power state and hardware profile), it does not include granular network configuration details by default [1]. To retrieve network interface information for an Azure Virtual Machine, you should use the dedicatedaz vm niccommand group. To list all network interfaces associated with a specific VM, use:az vm nic list --resource-group <resource-group> --vm-name <vm-name>[2] To display detailed information for a specific network interface attached to a VM, use:az vm nic show --resource-group <resource-group> --vm-name <vm-name> --nic <nic-name>[2] If your goal is to extract specific network profile data from theaz vm listcommand, you can use the--queryparameter with a JMESPath expression, though this is often more efficiently handled by querying the NIC resources directly [2].Citations:
🏁 Script executed:
Repository: openshift/hypershift
Length of output: 333
Select a worker VM explicitly.
When the resource group contains multiple VMs, line 69 can select a non-worker VM because
[0]has no worker filter. Use an explicit worker VM name, then query its NIC withaz vm nic listoraz vm nic show.🧰 Tools
🪛 markdownlint-cli2 (0.23.1)
[warning] 64-64: Code block style
Expected: indented; Actual: fenced
(MD046, code-block-style)
🤖 Prompt for AI Agents