Azure / Azure/azure-rest-api-specs

NetApp Volume doesn't set export policy at first http request

Open
#10,409 1 comment 0 reactions 1 assignee Claimed by @audunn View on GitHub
NetApp Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 2h
Merged PRs (30d)
424

Description

After tested, I found NetApp Volume doesn't set export policy at first http request while "ProtocolTypes" is set and the all values of "Cifs/Nfsv3/Nfsv41" of "ExportPolicyRule" are "false". And then I sent http request again with same http request body, export policy can be set correctly. I assume it should set correctly at first time.

First http request:
```
PUT https://management.azure.com/subscriptions/xx-xx-xx-xx/resourceGroups/example-resources2/providers/Microsoft.NetApp/netAppAccounts/example-netappaccount2/capacityPools/example-netapppool2/volumes/example-netappvolume2

{
"location": "westeurope",
"properties": {
"creationToken": "my-unique-file-path",
"serviceLevel": "Premium",
"usageThreshold": xxx,
"exportPolicy": {
"rules": [
{
"ruleIndex": 1,
"unixReadOnly": false,
"unixReadWrite": false,
"cifs": false,
"nfsv3": false,
"nfsv41": false,
"allowedClients": "10.0.2.2,10.0.2.3,10.0.2.1"
}
]
},
"protocolTypes": [
"NFSv3"
],
"subnetId": "/subscriptions/xx-xx-xx-xx/resourceGroups/example-resources2/providers/Microsoft.Network/virtualNetworks/example-virtualnetwork2/subnets/example-subnet2"
},
"tags": {}
}
```

Result:
![image](https://user-images.githubusercontent.com/19754191/89852198-ea571200-dbc0-11ea-9700-975a5d36529a.png)
![image](https://user-images.githubusercontent.com/19754191/89852150-cf849d80-dbc0-11ea-9aec-71616629e1cc.png)

Second http request:
```
PUT https://management.azure.com/subscriptions/xx-xx-xx-xx/resourceGroups/example-resources2/providers/Microsoft.NetApp/netAppAccounts/example-netappaccount2/capacityPools/example-netapppool2/volumes/example-netappvolume2

{
"location": "westeurope",
"properties": {
"creationToken": "my-unique-file-path",
"serviceLevel": "Premium",
"usageThreshold": xxx,
"exportPolicy": {
"rules": [
{
"ruleIndex": 1,
"unixReadOnly": false,
"unixReadWrite": false,
"cifs": false,
"nfsv3": false,
"nfsv41": false,
"allowedClients": "10.0.2.2,10.0.2.3,10.0.2.1"
}
]
},
"protocolTypes": [
"NFSv3"
],
"subnetId": "/subscriptions/xx-xx-xx-xx/resourceGroups/example-resources2/providers/Microsoft.Network/virtualNetworks/example-virtualnetwork2/subnets/example-subnet2"
},
"tags": {}
}
```

Result:
![image](https://user-images.githubusercontent.com/19754191/89852792-38b8e080-dbc2-11ea-8a09-dc146d8fe0b5.png)

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.