@@ -470,14 +470,16 @@ def validate_at_scope(
470470 request = self ._client .post (url , query_parameters , header_parameters , body_content )
471471 response = self ._client .send (request , stream = False , ** operation_config )
472472
473- if response .status_code not in [200 ]:
473+ if response .status_code not in [200 , 400 ]:
474474 exp = CloudError (response )
475475 exp .request_id = response .headers .get ('x-ms-request-id' )
476476 raise exp
477477
478478 deserialized = None
479479 if response .status_code == 200 :
480480 deserialized = self ._deserialize ('DeploymentValidateResult' , response )
481+ if response .status_code == 400 :
482+ deserialized = self ._deserialize ('DeploymentValidateResult' , response )
481483
482484 if raw :
483485 client_raw_response = ClientRawResponse (deserialized , response )
@@ -1034,14 +1036,16 @@ def validate_at_tenant_scope(
10341036 request = self ._client .post (url , query_parameters , header_parameters , body_content )
10351037 response = self ._client .send (request , stream = False , ** operation_config )
10361038
1037- if response .status_code not in [200 ]:
1039+ if response .status_code not in [200 , 400 ]:
10381040 exp = CloudError (response )
10391041 exp .request_id = response .headers .get ('x-ms-request-id' )
10401042 raise exp
10411043
10421044 deserialized = None
10431045 if response .status_code == 200 :
10441046 deserialized = self ._deserialize ('DeploymentValidateResult' , response )
1047+ if response .status_code == 400 :
1048+ deserialized = self ._deserialize ('DeploymentValidateResult' , response )
10451049
10461050 if raw :
10471051 client_raw_response = ClientRawResponse (deserialized , response )
@@ -1609,14 +1613,16 @@ def validate_at_management_group_scope(
16091613 request = self ._client .post (url , query_parameters , header_parameters , body_content )
16101614 response = self ._client .send (request , stream = False , ** operation_config )
16111615
1612- if response .status_code not in [200 ]:
1616+ if response .status_code not in [200 , 400 ]:
16131617 exp = CloudError (response )
16141618 exp .request_id = response .headers .get ('x-ms-request-id' )
16151619 raise exp
16161620
16171621 deserialized = None
16181622 if response .status_code == 200 :
16191623 deserialized = self ._deserialize ('DeploymentValidateResult' , response )
1624+ if response .status_code == 400 :
1625+ deserialized = self ._deserialize ('DeploymentValidateResult' , response )
16201626
16211627 if raw :
16221628 client_raw_response = ClientRawResponse (deserialized , response )
@@ -2179,14 +2185,16 @@ def validate_at_subscription_scope(
21792185 request = self ._client .post (url , query_parameters , header_parameters , body_content )
21802186 response = self ._client .send (request , stream = False , ** operation_config )
21812187
2182- if response .status_code not in [200 ]:
2188+ if response .status_code not in [200 , 400 ]:
21832189 exp = CloudError (response )
21842190 exp .request_id = response .headers .get ('x-ms-request-id' )
21852191 raise exp
21862192
21872193 deserialized = None
21882194 if response .status_code == 200 :
21892195 deserialized = self ._deserialize ('DeploymentValidateResult' , response )
2196+ if response .status_code == 400 :
2197+ deserialized = self ._deserialize ('DeploymentValidateResult' , response )
21902198
21912199 if raw :
21922200 client_raw_response = ClientRawResponse (deserialized , response )
@@ -2773,14 +2781,16 @@ def validate(
27732781 request = self ._client .post (url , query_parameters , header_parameters , body_content )
27742782 response = self ._client .send (request , stream = False , ** operation_config )
27752783
2776- if response .status_code not in [200 ]:
2784+ if response .status_code not in [200 , 400 ]:
27772785 exp = CloudError (response )
27782786 exp .request_id = response .headers .get ('x-ms-request-id' )
27792787 raise exp
27802788
27812789 deserialized = None
27822790 if response .status_code == 200 :
27832791 deserialized = self ._deserialize ('DeploymentValidateResult' , response )
2792+ if response .status_code == 400 :
2793+ deserialized = self ._deserialize ('DeploymentValidateResult' , response )
27842794
27852795 if raw :
27862796 client_raw_response = ClientRawResponse (deserialized , response )
0 commit comments