Azure / Azure/azure-rest-api-specs

[BUG] [`Microsoft.Web`@2021-02-01]: `SiteConfig.PublicNetworkAccess` specified leads to error response

Open
#29,043 4 comments 0 reactions 2 assignees Claimed by @aleksbol View on GitHub
bug Mgmt
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 2h
Merged PRs (30d)
424

Description

### API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/d1f4d6fcf1bbb2e71a32bb2079de12f17fedf56a/specification/web/resource-manager/Microsoft.Web/stable/2021-02-01/CommonDefinitions.json#L2137

### API Spec version

2021-02-01

### Describe the bug

There is no `Site.PublicNetworkAccess` defined in this version, while when `Site.SiteConfig.PublicNetworkAccess` is specified, The service error out
```
SiteConfig.PublicNetworkAccess cannot be set by itself. Please use the Site.PublicNetworkAccess property.
```

### Expected behavior

`PublicNetworkAccess` is set properly

### Actual behavior

The service return an error response.
```
SiteConfig.PublicNetworkAccess cannot be set by itself. Please use the Site.PublicNetworkAccess property.
```

### Reproduction Steps

send a request with `SiteConfig.PublicNetworkAccess` specified.

### Environment

_No response_

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.