Azure / Azure/azure-cli

az network nat gateway

Open
#19,885 2 comments 0 reactions 1 assignee Claimed by @kairu-ms View on GitHub
act-quality-productivity-squad customer-reported Network
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 10h
Merged PRs (30d)
64

Description

### **This is autogenerated. Please review and update as needed.**

## Describe the bug

**Command Name**
`az network nat gateway create`

**Errors:**
```
'NatGatewaysOperations' object has no attribute 'begin_create_or_update'
Traceback (most recent call last):
python3.6/dist-packages/knack/cli.py, ln 215, in invoke
cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
...
azure/cli/core/__init__.py, ln 782, in default_command_handler
return op(**command_args)
cli/command_modules/natgateway/custom.py, ln 34, in create_nat_gateway
return sdk_no_wait(no_wait, client.begin_create_or_update, resource_group_name, nat_gateway_name, nat_gateway)
AttributeError: 'NatGatewaysOperations' object has no attribute 'begin_create_or_update'
```

## To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

- _Put any pre-requisite steps here..._
- `az network nat gateway create --resource-group {} --name {} --public-ip-addresses {} --idle-timeout {}`

## Expected Behavior

## Environment Summary
```
Linux-5.4.0-1048-azure-x86_64-with-Ubuntu-18.04-bionic
Python 3.6.9
Installer: PIP

azure-cli 2.11.1

```
## Additional Context

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.