diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/network_profiles_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/network_profiles_operations.py index bd0f14eb8048..4a35508e3801 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/network_profiles_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/network_profiles_operations.py @@ -68,7 +68,7 @@ def _delete_initial( request = self._client.delete(url, query_parameters, header_parameters) response = self._client.send(request, stream=False, **operation_config) - if response.status_code not in [204]: + if response.status_code not in [200, 202, 204]: exp = CloudError(response) exp.request_id = response.headers.get('x-ms-request-id') raise exp