def create_with_http_info(scope, policy_assignment_name, parameters, custom_headers:nil)
      create_async(scope, policy_assignment_name, parameters, custom_headers:custom_headers).value!
    end
def create_with_http_info(scope, policy_assignment_name, parameters, custom_headers:nil)
      create_async(scope, policy_assignment_name, parameters, custom_headers:custom_headers).value!
    end
Creates a policy assignment.

 Policy assignments are inherited by child resources. For example, when you
 apply a policy to a resource group that policy is assigned to all resources
 in the group.

 @param scope [String] The scope of the policy assignment.
 @param policy_assignment_name [String] The name of the policy assignment.
 @param parameters [PolicyAssignment] Parameters for the policy assignment.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [MsRestAzure::AzureOperationResponse] HTTP response information.