vcd_vapp.test12345: Error finding OrgVCD Network: &errors.errorString{s:"error retreiving orgvdcnetwork: API Error: 403: [ 8493aaba-af54-4054-9809-c121c143a448 ] DISALLOWED_OPERATIONS [ com.vmware.vcloud.entity.network:00e90a0e-a03d-47f1-98ff-d3366d9fff92 ]"}
The error message is a bit misleading because I know I'm using the correct value for vdc. Whenever I change vdc to any other value, I get this error message.
"Something went wrong: error retrieving the organization VDC"
The "DISALLOWED_OPERATIONS" makes me think that this operation is not permitted, but when I use the UI in Vcloud, I am able to successfully create the vapp.
Here is the structure of the .tf file that I am using. When I include only the first section, I get a successful login with no errors. When I include the second section to create the vapp, I get the error message shown above. I appreciate any help or ideas for work-arounds.
# Configure the VMware vCloud Director Provider
provider "vcd" {
user = "user"
password = "password"
org = "org"
url = "https://example.com/api"
vdc = "vdc"
}
resource "vcd_vapp" "test12345" {
name = "test12345"
catalog_name = "catalog"
template_name = "template"
network_name = "network"
}