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

"--public-network-access" option does not exist #26812

Closed
nakamacchi opened this issue Jul 4, 2023 · 3 comments
Closed

"--public-network-access" option does not exist #26812

nakamacchi opened this issue Jul 4, 2023 · 3 comments
Labels
Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. CosmosDB az cosmosdb customer-reported Issues that are reported by GitHub users external to the Azure organization. CXP Attention This issue is handled by CXP team.

Comments

@nakamacchi
Copy link

Describe the bug

"--public-network-access" option does not exist.

Related command

az cosmosdb create

Errors

unrecognized arguments: --public-network-access DISABLED

Issue script & Debug output

az cosmosdb create --name ${TEMP_COSMOSDB_NAME} --resource-group ${TEMP_RG_NAME} --public-network-access DISABLED --network-acl-bypass AzureServices --default-consistency-level Session --enable-free-tier false --locations regionName="${TEMP_LOCATION_NAME}" failoverPriority=0 isZoneRedundant=False

Expected behavior

It seems that the right option is "--enable-public-network true/false"

Environment Summary

azure-cli 2.45.0 *

core 2.45.0 *
telemetry 1.0.8

Extensions:
monitor-control-service 0.3.0
connectedmachine 0.5.1
containerapp 0.3.22
scheduled-query 0.5.1
application-insights 0.1.18
alertsmanagement 0.2.3
guestconfig 0.1.1
azure-firewall 0.14.4
automanage 0.1.2
virtual-wan 0.2.15
account 0.2.5
bastion 0.2.3

Dependencies:
msal 1.20.0
azure-mgmt-resource 21.1.0b1

Python location '/opt/az/bin/python3'
Extensions directory '/home/nakama/.azure/cliextensions'

Python (Linux) 3.10.8 (main, Feb 3 2023, 09:43:57) [GCC 9.4.0]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

No response

@nakamacchi nakamacchi added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jul 4, 2023
@azure-client-tools-bot-prd
Copy link

Hi @nakamacchi,

2.45.0 is not the latest Azure CLI(2.49.0).

Please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

@azure-client-tools-bot-prd azure-client-tools-bot-prd bot added the Auto-Resolve Auto resolve by bot label Jul 4, 2023
@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot CXP Attention This issue is handled by CXP team. CosmosDB az cosmosdb labels Jul 4, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented Jul 4, 2023

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

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 Auto-Resolve Auto resolve by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. CosmosDB az cosmosdb customer-reported Issues that are reported by GitHub users external to the Azure organization. CXP Attention This issue is handled by CXP team.
Projects
None yet
Development

No branches or pull requests

2 participants